2021-03-26 00:17:52 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
package node;
|
|
|
|
option go_package = "google.golang.org/protobuf/types/known/nodepb";
|
|
|
|
|
|
|
|
service NodeService {
|
2021-08-03 06:06:26 +08:00
|
|
|
rpc Login(Object) returns (Object);
|
|
|
|
rpc CreateNode(Object) returns (Object);
|
|
|
|
rpc ReadNode(Object) returns (Object);
|
|
|
|
rpc UpdateNode(Object) returns (Object);
|
|
|
|
rpc DeleteNode(Object) returns (Object);
|
|
|
|
rpc GetPeers(Object) returns (Object);
|
|
|
|
rpc GetExtPeers(Object) returns (Object);
|
|
|
|
rpc CheckIn(Object) returns (Object);
|
2021-03-26 00:17:52 +08:00
|
|
|
}
|
|
|
|
|
2021-08-03 06:06:26 +08:00
|
|
|
message Object {
|
|
|
|
string Data = 1;
|
|
|
|
string Type = 2;
|
|
|
|
string Metadata = 3;
|
2021-03-26 00:17:52 +08:00
|
|
|
}
|