Skip to content

Simple loop array for round-robin dns, beng, beng by 🦀

License

Notifications You must be signed in to change notification settings

ragingwind/rust-bengbenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bengbenge

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

rust

Install

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());
}

node

Install

npm install bengbenge

Usese

import Bengbenge from 'bengbenge';

const beng = new Bengbenge();

Array.from('12345').forEach(i => beng.append(`www${i}.vercel.com`));

redirect(beng.next());

Publish

License

MIT @ Jimmy Moon