#round-robin #dns #router #utility

bengbenge

Simple inifity array for round-robin dns, beng, beng

6 releases

0.3.1 Dec 15, 2021
0.3.1-alpha.3 Jan 3, 2022
0.3.1-alpha.2 Dec 26, 2021
0.2.0 Dec 15, 2021
0.1.0 Dec 15, 2021

#19 in #round-robin

23 downloads per month

MIT license

4KB
65 lines

bengbenge

Simple inifity array for round-robin dns, beng, beng in rustlang. Origin is from node.

Usese

use bengbenge::BengBenge;

fn main() {
    let mut bbe = BengBenge::new();

    bbe.append("192.168.0.1".to_string());
    bbe.append("192.168.0.2".to_string());

    println!("{}", bbe.next().unwrap());
    println!("{}", bbe.next().unwrap());
    println!("{}", bbe.next().unwrap());
    println!("{}", bbe.next().unwrap());
}

License

MIT @ Jimmy Moon

No runtime deps