mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-05 10:51:41 +00:00
27 lines
391 B
Protocol Buffer
27 lines
391 B
Protocol Buffer
syntax = "proto3";
|
|||
|
|
|
||
|
|
package motr.v1;
|
||
|
|
|
||
|
|
option go_package = "github.com/onsonr/sonr/pkg/motr/types";
|
||
|
|
|
||
|
|
service Motr {
|
||
|
|
rpc Pin(PinRequest) returns (PinResponse);
|
||
|
|
rpc Unpin(UnpinRequest) returns (UnpinResponse);
|
||
|
|
}
|
||
|
|
|
||
|
|
message PinRequest {
|
||
|
|
string cid = 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
message PinResponse {
|
||
|
|
bool success = 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
message UnpinRequest {
|
||
|
|
string cid = 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
message UnpinResponse {
|
||
|
|
bool success = 1;
|
||
|
|
}
|