2019-09-04 18:07:06 +01:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
syntax = "proto3";
|
|
|
|
option go_package = "pb";
|
|
|
|
|
|
|
|
package contact;
|
|
|
|
|
|
|
|
import "node.proto";
|
|
|
|
|
|
|
|
service Contact {
|
|
|
|
rpc PingNode(ContactPingRequest) returns (ContactPingResponse);
|
|
|
|
}
|
|
|
|
|
|
|
|
service Node {
|
2019-09-14 01:37:32 +01:00
|
|
|
rpc CheckIn(CheckInRequest) returns (CheckInResponse);
|
2019-09-04 18:07:06 +01:00
|
|
|
}
|
|
|
|
|
2019-09-14 01:37:32 +01:00
|
|
|
message CheckInRequest {
|
|
|
|
string address = 1;
|
2019-09-19 19:37:31 +01:00
|
|
|
node.NodeVersion version = 2;
|
2019-09-04 18:07:06 +01:00
|
|
|
node.NodeCapacity capacity = 3;
|
|
|
|
node.NodeOperator operator = 4;
|
|
|
|
}
|
|
|
|
|
2019-09-14 01:37:32 +01:00
|
|
|
message CheckInResponse {
|
2019-09-04 18:07:06 +01:00
|
|
|
bool ping_node_success = 1;
|
|
|
|
string ping_error_message = 2;
|
|
|
|
}
|
|
|
|
|
2019-09-19 20:56:34 +01:00
|
|
|
message ContactPingRequest {}
|
2019-09-04 18:07:06 +01:00
|
|
|
|
2019-09-19 20:56:34 +01:00
|
|
|
message ContactPingResponse {}
|