open-vault/vault/request_forwarding_service....

29 lines
704 B
Protocol Buffer

syntax = "proto3";
option go_package = "github.com/hashicorp/vault/vault";
import "helper/forwarding/types.proto";
package vault;
message EchoRequest {
string message = 1;
// ClusterAddr is used to send up a standby node's address to the active
// node upon heartbeat
string cluster_addr = 2;
// 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;
}
service RequestForwarding {
rpc ForwardRequest(forwarding.Request) returns (forwarding.Response) {}
rpc Echo(EchoRequest) returns (EchoReply) {}
}