gandi-live-dns-rust/src/ip_source/ip_source.rs
Kaan Barmore-Genç 90c5485cce
Add first test (#38)
* wip

* wip implement test

* complete test

* add lint and test actions

* fix bad format
2022-08-22 22:20:10 -04:00

9 lines
183 B
Rust

use anyhow;
use async_trait::async_trait;
#[async_trait]
pub trait IPSource {
async fn get_ipv4() -> anyhow::Result<String>;
async fn get_ipv6() -> anyhow::Result<String>;
}