open-vault/vault/request_forwarding_service....

47 lines
1.1 KiB
Protocol Buffer
Raw Normal View History

2016-08-19 15:03:53 +00:00
syntax = "proto3";
option go_package = "github.com/hashicorp/vault/vault";
import "helper/forwarding/types.proto";
2016-08-19 15:03:53 +00:00
package vault;
message EchoRequest {
string message = 1;
2017-10-23 18:59:37 +00:00
// ClusterAddr is used to send up a standby node's address to the active
// node upon heartbeat
string cluster_addr = 2;
2017-10-23 18:59:37 +00:00
// ClusterAddrs is used to send up a list of cluster addresses to a dr
// primary from a dr secondary
repeated string cluster_addrs = 3;
}
message EchoReply {
string message = 1;
repeated string cluster_addrs = 2;
uint32 replication_state = 3;
}
2018-09-18 03:03:00 +00:00
message ClientKey {
string type = 1;
bytes x = 2;
bytes y = 3;
bytes d = 4;
}
message PerfStandbyElectionInput {}
message PerfStandbyElectionResponse {
string id = 1;
string cluster_id = 2;
string primary_cluster_addr = 3;
bytes ca_cert = 4;
bytes client_cert = 5;
ClientKey client_key = 6;
}
service RequestForwarding {
2017-01-06 22:08:43 +00:00
rpc ForwardRequest(forwarding.Request) returns (forwarding.Response) {}
rpc Echo(EchoRequest) returns (EchoReply) {}
2018-09-18 03:03:00 +00:00
rpc PerformanceStandbyElectionRequest(PerfStandbyElectionInput) returns (stream PerfStandbyElectionResponse) {}
2016-08-19 15:03:53 +00:00
}