mirror of
https://github.com/rclone/rclone.git
synced 2024-12-11 17:51:12 +01:00
43 lines
947 B
Protocol Buffer
43 lines
947 B
Protocol Buffer
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
syntax = "proto3";
|
|
option go_package = "storj.io/common/pb";
|
|
|
|
package contact;
|
|
|
|
import "gogo.proto";
|
|
import "google/protobuf/timestamp.proto";
|
|
import "node.proto";
|
|
|
|
service Contact {
|
|
rpc PingNode(ContactPingRequest) returns (ContactPingResponse);
|
|
}
|
|
|
|
service Node {
|
|
rpc CheckIn(CheckInRequest) returns (CheckInResponse);
|
|
rpc GetTime(GetTimeRequest) returns (GetTimeResponse);
|
|
}
|
|
|
|
message CheckInRequest {
|
|
string address = 1;
|
|
node.NodeVersion version = 2;
|
|
node.NodeCapacity capacity = 3;
|
|
node.NodeOperator operator = 4;
|
|
}
|
|
|
|
message CheckInResponse {
|
|
bool ping_node_success = 1;
|
|
string ping_error_message = 2;
|
|
}
|
|
|
|
message GetTimeRequest {}
|
|
|
|
message GetTimeResponse {
|
|
google.protobuf.Timestamp timestamp = 1 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
|
|
}
|
|
|
|
message ContactPingRequest {}
|
|
|
|
message ContactPingResponse {}
|