heimdall/api/v1/heimdall.proto
Evan Hazlett 562f1caa54
added server; initial cluster state
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2019-10-03 09:49:23 -04:00

40 lines
984 B
Protocol Buffer

syntax = "proto3";
package io.stellarproject.heimdall.api.v1;
import "gogoproto/gogo.proto";
//import "google/protobuf/empty.proto";
//import "google/protobuf/any.proto";
option go_package = "github.com/stellarproject/heimdall/api/v1;v1";
service Heimdall {
rpc Connect(ConnectRequest) returns (ConnectResponse);
//rpc Nodes(NodesRequest) returns (NodesResponse);
//rpc Peers(PeersRequest) returns (PeersResponse);
}
message Master {
string id = 1 [(gogoproto.customname) = "ID"];
string grpc_address = 2 [(gogoproto.customname) = "GRPCAddress"];
string redis_url = 3 [(gogoproto.customname) = "RedisURL"];
}
message ConnectRequest {
string id = 1 [(gogoproto.customname) = "ID"];
}
message ConnectResponse {
Master master = 1;
}
message Node {
string id = 1 [(gogoproto.customname) = "ID"];
string addr = 2;
}
message NodesRequest {}
message NodesResponse {
repeated Node nodes = 1;
}