Crates.io | deepwell-rpc |
lib.rs | deepwell-rpc |
version | 0.0.6 |
source | src |
created_at | 2020-01-25 02:46:11.545811 |
updated_at | 2020-01-27 06:08:16.645969 |
description | Database management and migrations service |
homepage | |
repository | https://github.com/Nu-SCPTheme/deepwell |
max_upload_size | |
id | 201723 |
size | 99,560 |
An RPC server and client for DEEPWELL calls. See the relevant crate documentation for more information about what services it provides.
This crate targets the latest stable Rust. At time of writing, that is 1.40.0
$ cargo build --release
$ cargo run --release -- [arguments] # server
If you wish to use its client, import the crate and use it as a library.
The current API provided by the RPC server is as follows:
protocol() -> io::Result<String>
:
Returns a static protocol version. Currently "0".
ping() -> io::Result<()>
:
Determines if the server is reachable.
time() -> io::Result<f64>
:
Returns the system time on the server. It may be in any timezone and is not monotonic.
(TODO)