rusty_weed

A client implementation in rust for SeaweedFS. Written with the help of reqwest as http client and serde for serialization/deserialization.

Examples

Upload bytes

```rust let master = Master { host: MASTERHOST.tostring(), port: Some(MASTER_PORT), };

let options: AssignKeyOptions = Default::default(); let masterresp = master.assignkey(&Some(options)).await;

let fid: FID; let volume: Volume; match masterresp { Ok(x) => { println!("Address {}", x.location.url); volume = Volume::fromstr(&x.location.url).unwrap(); fid = x.fid; } _ => panic!("failed to assign key"), }

let data = Bytes::from("Hello World!"); let resp = volume.uploadfilebytes(&fid, &data, &None).await; ```

TODO

Master endpoints

Volume endpoints

Filer endpoints