577 lines
21 KiB
Go
577 lines
21 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: vault/request_forwarding_service.proto
|
|
|
|
package vault
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
forwarding "github.com/hashicorp/vault/helper/forwarding"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type EchoRequest struct {
|
|
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
|
|
// ClusterAddr is used to send up a standby node's address to the active
|
|
// node upon heartbeat
|
|
ClusterAddr string `protobuf:"bytes,2,opt,name=cluster_addr,json=clusterAddr,proto3" json:"cluster_addr,omitempty"`
|
|
// ClusterAddrs is used to send up a list of cluster addresses to a dr
|
|
// primary from a dr secondary
|
|
ClusterAddrs []string `protobuf:"bytes,3,rep,name=cluster_addrs,json=clusterAddrs,proto3" json:"cluster_addrs,omitempty"`
|
|
RaftAppliedIndex uint64 `protobuf:"varint,4,opt,name=raft_applied_index,json=raftAppliedIndex,proto3" json:"raft_applied_index,omitempty"`
|
|
RaftNodeID string `protobuf:"bytes,5,opt,name=raft_node_id,json=raftNodeId,proto3" json:"raft_node_id,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *EchoRequest) Reset() { *m = EchoRequest{} }
|
|
func (m *EchoRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*EchoRequest) ProtoMessage() {}
|
|
func (*EchoRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f5f7512e4ab7b58a, []int{0}
|
|
}
|
|
|
|
func (m *EchoRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_EchoRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *EchoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_EchoRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *EchoRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_EchoRequest.Merge(m, src)
|
|
}
|
|
func (m *EchoRequest) XXX_Size() int {
|
|
return xxx_messageInfo_EchoRequest.Size(m)
|
|
}
|
|
func (m *EchoRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_EchoRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_EchoRequest proto.InternalMessageInfo
|
|
|
|
func (m *EchoRequest) GetMessage() string {
|
|
if m != nil {
|
|
return m.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *EchoRequest) GetClusterAddr() string {
|
|
if m != nil {
|
|
return m.ClusterAddr
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *EchoRequest) GetClusterAddrs() []string {
|
|
if m != nil {
|
|
return m.ClusterAddrs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *EchoRequest) GetRaftAppliedIndex() uint64 {
|
|
if m != nil {
|
|
return m.RaftAppliedIndex
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *EchoRequest) GetRaftNodeID() string {
|
|
if m != nil {
|
|
return m.RaftNodeID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type EchoReply struct {
|
|
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
|
|
ClusterAddrs []string `protobuf:"bytes,2,rep,name=cluster_addrs,json=clusterAddrs,proto3" json:"cluster_addrs,omitempty"`
|
|
ReplicationState uint32 `protobuf:"varint,3,opt,name=replication_state,json=replicationState,proto3" json:"replication_state,omitempty"`
|
|
RaftAppliedIndex uint64 `protobuf:"varint,4,opt,name=raft_applied_index,json=raftAppliedIndex,proto3" json:"raft_applied_index,omitempty"`
|
|
RaftNodeID string `protobuf:"bytes,5,opt,name=raft_node_id,json=raftNodeId,proto3" json:"raft_node_id,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *EchoReply) Reset() { *m = EchoReply{} }
|
|
func (m *EchoReply) String() string { return proto.CompactTextString(m) }
|
|
func (*EchoReply) ProtoMessage() {}
|
|
func (*EchoReply) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f5f7512e4ab7b58a, []int{1}
|
|
}
|
|
|
|
func (m *EchoReply) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_EchoReply.Unmarshal(m, b)
|
|
}
|
|
func (m *EchoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_EchoReply.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *EchoReply) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_EchoReply.Merge(m, src)
|
|
}
|
|
func (m *EchoReply) XXX_Size() int {
|
|
return xxx_messageInfo_EchoReply.Size(m)
|
|
}
|
|
func (m *EchoReply) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_EchoReply.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_EchoReply proto.InternalMessageInfo
|
|
|
|
func (m *EchoReply) GetMessage() string {
|
|
if m != nil {
|
|
return m.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *EchoReply) GetClusterAddrs() []string {
|
|
if m != nil {
|
|
return m.ClusterAddrs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *EchoReply) GetReplicationState() uint32 {
|
|
if m != nil {
|
|
return m.ReplicationState
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *EchoReply) GetRaftAppliedIndex() uint64 {
|
|
if m != nil {
|
|
return m.RaftAppliedIndex
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *EchoReply) GetRaftNodeID() string {
|
|
if m != nil {
|
|
return m.RaftNodeID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ClientKey struct {
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
X []byte `protobuf:"bytes,2,opt,name=x,proto3" json:"x,omitempty"`
|
|
Y []byte `protobuf:"bytes,3,opt,name=y,proto3" json:"y,omitempty"`
|
|
D []byte `protobuf:"bytes,4,opt,name=d,proto3" json:"d,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ClientKey) Reset() { *m = ClientKey{} }
|
|
func (m *ClientKey) String() string { return proto.CompactTextString(m) }
|
|
func (*ClientKey) ProtoMessage() {}
|
|
func (*ClientKey) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f5f7512e4ab7b58a, []int{2}
|
|
}
|
|
|
|
func (m *ClientKey) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ClientKey.Unmarshal(m, b)
|
|
}
|
|
func (m *ClientKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ClientKey.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ClientKey) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ClientKey.Merge(m, src)
|
|
}
|
|
func (m *ClientKey) XXX_Size() int {
|
|
return xxx_messageInfo_ClientKey.Size(m)
|
|
}
|
|
func (m *ClientKey) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ClientKey.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ClientKey proto.InternalMessageInfo
|
|
|
|
func (m *ClientKey) GetType() string {
|
|
if m != nil {
|
|
return m.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ClientKey) GetX() []byte {
|
|
if m != nil {
|
|
return m.X
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ClientKey) GetY() []byte {
|
|
if m != nil {
|
|
return m.Y
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ClientKey) GetD() []byte {
|
|
if m != nil {
|
|
return m.D
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PerfStandbyElectionInput struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PerfStandbyElectionInput) Reset() { *m = PerfStandbyElectionInput{} }
|
|
func (m *PerfStandbyElectionInput) String() string { return proto.CompactTextString(m) }
|
|
func (*PerfStandbyElectionInput) ProtoMessage() {}
|
|
func (*PerfStandbyElectionInput) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f5f7512e4ab7b58a, []int{3}
|
|
}
|
|
|
|
func (m *PerfStandbyElectionInput) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PerfStandbyElectionInput.Unmarshal(m, b)
|
|
}
|
|
func (m *PerfStandbyElectionInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PerfStandbyElectionInput.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PerfStandbyElectionInput) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PerfStandbyElectionInput.Merge(m, src)
|
|
}
|
|
func (m *PerfStandbyElectionInput) XXX_Size() int {
|
|
return xxx_messageInfo_PerfStandbyElectionInput.Size(m)
|
|
}
|
|
func (m *PerfStandbyElectionInput) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PerfStandbyElectionInput.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PerfStandbyElectionInput proto.InternalMessageInfo
|
|
|
|
type PerfStandbyElectionResponse struct {
|
|
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
ClusterID string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
|
|
PrimaryClusterAddr string `protobuf:"bytes,3,opt,name=primary_cluster_addr,json=primaryClusterAddr,proto3" json:"primary_cluster_addr,omitempty"`
|
|
CaCert []byte `protobuf:"bytes,4,opt,name=ca_cert,json=caCert,proto3" json:"ca_cert,omitempty"`
|
|
ClientCert []byte `protobuf:"bytes,5,opt,name=client_cert,json=clientCert,proto3" json:"client_cert,omitempty"`
|
|
ClientKey *ClientKey `protobuf:"bytes,6,opt,name=client_key,json=clientKey,proto3" json:"client_key,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PerfStandbyElectionResponse) Reset() { *m = PerfStandbyElectionResponse{} }
|
|
func (m *PerfStandbyElectionResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*PerfStandbyElectionResponse) ProtoMessage() {}
|
|
func (*PerfStandbyElectionResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f5f7512e4ab7b58a, []int{4}
|
|
}
|
|
|
|
func (m *PerfStandbyElectionResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PerfStandbyElectionResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *PerfStandbyElectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PerfStandbyElectionResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PerfStandbyElectionResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PerfStandbyElectionResponse.Merge(m, src)
|
|
}
|
|
func (m *PerfStandbyElectionResponse) XXX_Size() int {
|
|
return xxx_messageInfo_PerfStandbyElectionResponse.Size(m)
|
|
}
|
|
func (m *PerfStandbyElectionResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PerfStandbyElectionResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PerfStandbyElectionResponse proto.InternalMessageInfo
|
|
|
|
func (m *PerfStandbyElectionResponse) GetID() string {
|
|
if m != nil {
|
|
return m.ID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *PerfStandbyElectionResponse) GetClusterID() string {
|
|
if m != nil {
|
|
return m.ClusterID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *PerfStandbyElectionResponse) GetPrimaryClusterAddr() string {
|
|
if m != nil {
|
|
return m.PrimaryClusterAddr
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *PerfStandbyElectionResponse) GetCaCert() []byte {
|
|
if m != nil {
|
|
return m.CaCert
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *PerfStandbyElectionResponse) GetClientCert() []byte {
|
|
if m != nil {
|
|
return m.ClientCert
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *PerfStandbyElectionResponse) GetClientKey() *ClientKey {
|
|
if m != nil {
|
|
return m.ClientKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*EchoRequest)(nil), "vault.EchoRequest")
|
|
proto.RegisterType((*EchoReply)(nil), "vault.EchoReply")
|
|
proto.RegisterType((*ClientKey)(nil), "vault.ClientKey")
|
|
proto.RegisterType((*PerfStandbyElectionInput)(nil), "vault.PerfStandbyElectionInput")
|
|
proto.RegisterType((*PerfStandbyElectionResponse)(nil), "vault.PerfStandbyElectionResponse")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("vault/request_forwarding_service.proto", fileDescriptor_f5f7512e4ab7b58a)
|
|
}
|
|
|
|
var fileDescriptor_f5f7512e4ab7b58a = []byte{
|
|
// 552 bytes of a gzipped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 0xb7, 0xe1, 0x3e, 0x6f, 0xf7, 0xdc, 0xf2, 0xbf, 0xfd, 0x13, 0x00, 0x00, 0xff, 0xff,
|
|
0x67, 0xc6, 0xa7, 0xe1, 0x4c, 0x04, 0x00, 0x00,
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// RequestForwardingClient is the client API for RequestForwarding service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type RequestForwardingClient interface {
|
|
ForwardRequest(ctx context.Context, in *forwarding.Request, opts ...grpc.CallOption) (*forwarding.Response, error)
|
|
Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoReply, error)
|
|
PerformanceStandbyElectionRequest(ctx context.Context, in *PerfStandbyElectionInput, opts ...grpc.CallOption) (RequestForwarding_PerformanceStandbyElectionRequestClient, error)
|
|
}
|
|
|
|
type requestForwardingClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewRequestForwardingClient(cc *grpc.ClientConn) RequestForwardingClient {
|
|
return &requestForwardingClient{cc}
|
|
}
|
|
|
|
func (c *requestForwardingClient) ForwardRequest(ctx context.Context, in *forwarding.Request, opts ...grpc.CallOption) (*forwarding.Response, error) {
|
|
out := new(forwarding.Response)
|
|
err := c.cc.Invoke(ctx, "/vault.RequestForwarding/ForwardRequest", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *requestForwardingClient) Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoReply, error) {
|
|
out := new(EchoReply)
|
|
err := c.cc.Invoke(ctx, "/vault.RequestForwarding/Echo", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *requestForwardingClient) PerformanceStandbyElectionRequest(ctx context.Context, in *PerfStandbyElectionInput, opts ...grpc.CallOption) (RequestForwarding_PerformanceStandbyElectionRequestClient, error) {
|
|
stream, err := c.cc.NewStream(ctx, &_RequestForwarding_serviceDesc.Streams[0], "/vault.RequestForwarding/PerformanceStandbyElectionRequest", opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
x := &requestForwardingPerformanceStandbyElectionRequestClient{stream}
|
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if err := x.ClientStream.CloseSend(); err != nil {
|
|
return nil, err
|
|
}
|
|
return x, nil
|
|
}
|
|
|
|
type RequestForwarding_PerformanceStandbyElectionRequestClient interface {
|
|
Recv() (*PerfStandbyElectionResponse, error)
|
|
grpc.ClientStream
|
|
}
|
|
|
|
type requestForwardingPerformanceStandbyElectionRequestClient struct {
|
|
grpc.ClientStream
|
|
}
|
|
|
|
func (x *requestForwardingPerformanceStandbyElectionRequestClient) Recv() (*PerfStandbyElectionResponse, error) {
|
|
m := new(PerfStandbyElectionResponse)
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
return nil, err
|
|
}
|
|
return m, nil
|
|
}
|
|
|
|
// RequestForwardingServer is the server API for RequestForwarding service.
|
|
type RequestForwardingServer interface {
|
|
ForwardRequest(context.Context, *forwarding.Request) (*forwarding.Response, error)
|
|
Echo(context.Context, *EchoRequest) (*EchoReply, error)
|
|
PerformanceStandbyElectionRequest(*PerfStandbyElectionInput, RequestForwarding_PerformanceStandbyElectionRequestServer) error
|
|
}
|
|
|
|
// UnimplementedRequestForwardingServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedRequestForwardingServer struct {
|
|
}
|
|
|
|
func (*UnimplementedRequestForwardingServer) ForwardRequest(ctx context.Context, req *forwarding.Request) (*forwarding.Response, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ForwardRequest not implemented")
|
|
}
|
|
func (*UnimplementedRequestForwardingServer) Echo(ctx context.Context, req *EchoRequest) (*EchoReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Echo not implemented")
|
|
}
|
|
func (*UnimplementedRequestForwardingServer) PerformanceStandbyElectionRequest(req *PerfStandbyElectionInput, srv RequestForwarding_PerformanceStandbyElectionRequestServer) error {
|
|
return status.Errorf(codes.Unimplemented, "method PerformanceStandbyElectionRequest not implemented")
|
|
}
|
|
|
|
func RegisterRequestForwardingServer(s *grpc.Server, srv RequestForwardingServer) {
|
|
s.RegisterService(&_RequestForwarding_serviceDesc, srv)
|
|
}
|
|
|
|
func _RequestForwarding_ForwardRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(forwarding.Request)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RequestForwardingServer).ForwardRequest(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/vault.RequestForwarding/ForwardRequest",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RequestForwardingServer).ForwardRequest(ctx, req.(*forwarding.Request))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RequestForwarding_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(EchoRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RequestForwardingServer).Echo(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/vault.RequestForwarding/Echo",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RequestForwardingServer).Echo(ctx, req.(*EchoRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RequestForwarding_PerformanceStandbyElectionRequest_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
m := new(PerfStandbyElectionInput)
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
return err
|
|
}
|
|
return srv.(RequestForwardingServer).PerformanceStandbyElectionRequest(m, &requestForwardingPerformanceStandbyElectionRequestServer{stream})
|
|
}
|
|
|
|
type RequestForwarding_PerformanceStandbyElectionRequestServer interface {
|
|
Send(*PerfStandbyElectionResponse) error
|
|
grpc.ServerStream
|
|
}
|
|
|
|
type requestForwardingPerformanceStandbyElectionRequestServer struct {
|
|
grpc.ServerStream
|
|
}
|
|
|
|
func (x *requestForwardingPerformanceStandbyElectionRequestServer) Send(m *PerfStandbyElectionResponse) error {
|
|
return x.ServerStream.SendMsg(m)
|
|
}
|
|
|
|
var _RequestForwarding_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "vault.RequestForwarding",
|
|
HandlerType: (*RequestForwardingServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "ForwardRequest",
|
|
Handler: _RequestForwarding_ForwardRequest_Handler,
|
|
},
|
|
{
|
|
MethodName: "Echo",
|
|
Handler: _RequestForwarding_Echo_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{
|
|
{
|
|
StreamName: "PerformanceStandbyElectionRequest",
|
|
Handler: _RequestForwarding_PerformanceStandbyElectionRequest_Handler,
|
|
ServerStreams: true,
|
|
},
|
|
},
|
|
Metadata: "vault/request_forwarding_service.proto",
|
|
}
|