summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src/request/bootstrap.rs
diff options
context:
space:
mode:
authorFerris Tseng <ferristseng@fastmail.fm>2017-10-09 19:52:07 -0400
committerFerris Tseng <ferristseng@fastmail.fm>2017-10-09 19:52:07 -0400
commitaf3c23b54fb04ba232d0e04642f570e1f5b4cf72 (patch)
tree9519c06428b0252375e07816c434a6edbec03815 /ipfs-api/src/request/bootstrap.rs
parent861b463306cf2d158b5f3fa5efa20b52bab23287 (diff)
add some bootstrap and config commands
Diffstat (limited to 'ipfs-api/src/request/bootstrap.rs')
-rw-r--r--ipfs-api/src/request/bootstrap.rs31
1 files changed, 31 insertions, 0 deletions
diff --git a/ipfs-api/src/request/bootstrap.rs b/ipfs-api/src/request/bootstrap.rs
new file mode 100644
index 0000000..62fb761
--- /dev/null
+++ b/ipfs-api/src/request/bootstrap.rs
@@ -0,0 +1,31 @@
+use request::ApiRequest;
+
+
+pub struct BootstrapAddDefault;
+
+impl ApiRequest for BootstrapAddDefault {
+ #[inline]
+ fn path() -> &'static str {
+ "/bootstrap/add/default"
+ }
+}
+
+
+pub struct BootstrapList;
+
+impl ApiRequest for BootstrapList {
+ #[inline]
+ fn path() -> &'static str {
+ "/bootstrap/list"
+ }
+}
+
+
+pub struct BootstrapRmAll;
+
+impl ApiRequest for BootstrapRmAll {
+ #[inline]
+ fn path() -> &'static str {
+ "/bootstrap/rm/all"
+ }
+}