93788e5218
* create upsert query for check-in method * add tests * fix lint err * add benchmark test for db query * fix lint and tests * add a unit test, fix lint * add address to tests * replace print w/ b.Fatal * refactor query per CR comments * fix disqualified, only set if null * fix query * add version to updatecheckin query * fix version * fix tests * change version for tests * add version to tests * add IP, add transport, mv unit test * use node.address as arg * add last ip * fix lint
36 lines
650 B
Protocol Buffer
36 lines
650 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 {
|
|
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 ContactPingRequest {
|
|
}
|
|
|
|
message ContactPingResponse {
|
|
}
|