f7bae57e5b
* add init contact proto * make 2 svcs * add geenerated proto code * fux conflict with NodeRequest name * use correct version on proto * rm extra node fields * add protolock * update field names so they are better * rm node id since we dont need it
35 lines
626 B
Protocol Buffer
35 lines
626 B
Protocol Buffer
// 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 {
|
|
rpc Checkin(CheckinRequest) returns (CheckinResponse);
|
|
}
|
|
|
|
message CheckinRequest {
|
|
node.NodeAddress address = 1;
|
|
node.NodeCapacity capacity = 3;
|
|
node.NodeOperator operator = 4;
|
|
}
|
|
|
|
message CheckinResponse {
|
|
bool ping_node_success = 1;
|
|
string ping_error_message = 2;
|
|
}
|
|
|
|
message ContactPingRequest {
|
|
}
|
|
|
|
message ContactPingResponse {
|
|
}
|