2020-06-23 20:19:56 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2018-10-03 18:18:55 +00:00
|
|
|
// source: envoy/api/v2/cds.proto
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
package envoy_api_v2
|
2018-10-03 18:18:55 +00:00
|
|
|
|
2019-06-07 12:10:43 +00:00
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
fmt "fmt"
|
2020-06-23 20:19:56 +00:00
|
|
|
_ "github.com/cncf/udpa/go/udpa/annotations"
|
|
|
|
_ "github.com/envoyproxy/go-control-plane/envoy/annotations"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
2019-06-07 12:10:43 +00:00
|
|
|
grpc "google.golang.org/grpc"
|
2020-06-23 20:19:56 +00:00
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
|
status "google.golang.org/grpc/status"
|
|
|
|
math "math"
|
2019-06-07 12:10:43 +00:00
|
|
|
)
|
2018-10-03 18:18:55 +00:00
|
|
|
|
|
|
|
// 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.
|
2020-06-23 20:19:56 +00:00
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
2018-10-03 18:18:55 +00:00
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
type CdsDummy struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func (m *CdsDummy) Reset() { *m = CdsDummy{} }
|
|
|
|
func (m *CdsDummy) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*CdsDummy) ProtoMessage() {}
|
|
|
|
func (*CdsDummy) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e73f50fbb1daa302, []int{0}
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2019-06-07 12:10:43 +00:00
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func (m *CdsDummy) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_CdsDummy.Unmarshal(m, b)
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
func (m *CdsDummy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_CdsDummy.Marshal(b, m, deterministic)
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
func (m *CdsDummy) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_CdsDummy.Merge(m, src)
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
func (m *CdsDummy) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_CdsDummy.Size(m)
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
func (m *CdsDummy) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_CdsDummy.DiscardUnknown(m)
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
var xxx_messageInfo_CdsDummy proto.InternalMessageInfo
|
2019-06-07 12:10:43 +00:00
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*CdsDummy)(nil), "envoy.api.v2.CdsDummy")
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func init() { proto.RegisterFile("envoy/api/v2/cds.proto", fileDescriptor_e73f50fbb1daa302) }
|
2019-06-07 12:10:43 +00:00
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
var fileDescriptor_e73f50fbb1daa302 = []byte{
|
|
|
|
// 358 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4b, 0xcd, 0x2b, 0xcb,
|
|
|
|
0xaf, 0xd4, 0x4f, 0x2c, 0xc8, 0xd4, 0x2f, 0x33, 0xd2, 0x4f, 0x4e, 0x29, 0xd6, 0x2b, 0x28, 0xca,
|
|
|
|
0x2f, 0xc9, 0x17, 0xe2, 0x01, 0x8b, 0xeb, 0x25, 0x16, 0x64, 0xea, 0x95, 0x19, 0x49, 0xc9, 0xa0,
|
|
|
|
0xa8, 0x4a, 0xc9, 0x2c, 0x4e, 0xce, 0x2f, 0x4b, 0x2d, 0xaa, 0x84, 0xa8, 0x95, 0x92, 0x49, 0xcf,
|
|
|
|
0xcf, 0x4f, 0xcf, 0x49, 0x05, 0x4b, 0x27, 0xe6, 0xe5, 0xe5, 0x97, 0x24, 0x96, 0x64, 0xe6, 0xe7,
|
|
|
|
0x41, 0x4d, 0x92, 0x52, 0x80, 0xea, 0x45, 0x48, 0xe8, 0x17, 0xa5, 0x16, 0xe7, 0x97, 0x16, 0x25,
|
|
|
|
0xa7, 0x42, 0x55, 0xc8, 0x95, 0xa6, 0x14, 0x24, 0xa2, 0x28, 0xc8, 0xcd, 0x4c, 0x2f, 0x4a, 0x2c,
|
|
|
|
0x81, 0xc9, 0xcb, 0x62, 0xc8, 0x17, 0x97, 0x24, 0x96, 0x94, 0xc2, 0x2c, 0x90, 0x42, 0xf5, 0x42,
|
|
|
|
0x4e, 0x69, 0x71, 0x49, 0x6a, 0x11, 0x44, 0x4e, 0x89, 0x8b, 0x8b, 0xc3, 0x39, 0xa5, 0xd8, 0xa5,
|
|
|
|
0x34, 0x37, 0xb7, 0xd2, 0xe8, 0x2d, 0x13, 0x97, 0xb8, 0x33, 0x44, 0xd6, 0x05, 0xe6, 0x83, 0xe0,
|
|
|
|
0xd4, 0xa2, 0xb2, 0xcc, 0xe4, 0x54, 0xa1, 0x70, 0x2e, 0xbe, 0xe0, 0x92, 0xa2, 0xd4, 0xc4, 0x5c,
|
|
|
|
0xa8, 0x82, 0x62, 0x21, 0x39, 0x3d, 0xe4, 0x10, 0xd0, 0x83, 0xeb, 0x08, 0x4a, 0x2d, 0x2c, 0x4d,
|
|
|
|
0x2d, 0x2e, 0x91, 0x92, 0xc7, 0x29, 0x5f, 0x5c, 0x90, 0x9f, 0x57, 0x9c, 0xaa, 0xc4, 0xa0, 0xc1,
|
|
|
|
0x68, 0xc0, 0x28, 0x94, 0xc0, 0xc5, 0xeb, 0x92, 0x9a, 0x53, 0x92, 0x08, 0x37, 0x57, 0x19, 0x4d,
|
|
|
|
0x1f, 0x48, 0x12, 0xc3, 0x70, 0x15, 0xfc, 0x8a, 0x50, 0x6c, 0xa8, 0xe4, 0xe2, 0x75, 0x4b, 0x2d,
|
|
|
|
0x49, 0xce, 0xa0, 0x9e, 0xcb, 0xd5, 0x9b, 0x2e, 0x3f, 0x99, 0xcc, 0x24, 0xa1, 0x24, 0x86, 0x12,
|
|
|
|
0xd9, 0x56, 0xd0, 0x90, 0x2d, 0x06, 0xcb, 0x32, 0x5b, 0x31, 0x6a, 0x49, 0xc9, 0x74, 0x2d, 0x99,
|
|
|
|
0xf6, 0x99, 0x5d, 0x8c, 0x4b, 0x04, 0xc5, 0x40, 0xa8, 0x43, 0x9c, 0x82, 0x3f, 0xcd, 0xf8, 0xd7,
|
|
|
|
0xcf, 0x2a, 0x25, 0x24, 0x01, 0x91, 0x2d, 0x86, 0x04, 0xb5, 0x1e, 0x2c, 0x82, 0xca, 0x8c, 0x77,
|
|
|
|
0x35, 0x9c, 0xb8, 0xc8, 0xc6, 0x24, 0xc0, 0xc8, 0x25, 0x95, 0x99, 0x0f, 0x71, 0x53, 0x41, 0x51,
|
|
|
|
0x7e, 0x45, 0x25, 0x8a, 0xf3, 0x9c, 0x40, 0xf1, 0x17, 0x00, 0x8a, 0xcb, 0x00, 0xc6, 0x0e, 0x46,
|
|
|
|
0xc6, 0x00, 0xd6, 0x24, 0x36, 0x70, 0xcc, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x92, 0xc7,
|
|
|
|
0xb6, 0xad, 0xba, 0x02, 0x00, 0x00,
|
2019-06-07 12:10:43 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ context.Context
|
|
|
|
var _ grpc.ClientConn
|
2019-06-07 12:10:43 +00:00
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
// 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
|
2019-06-07 12:10:43 +00:00
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
// ClusterDiscoveryServiceClient is the client API for ClusterDiscoveryService service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type ClusterDiscoveryServiceClient interface {
|
|
|
|
StreamClusters(ctx context.Context, opts ...grpc.CallOption) (ClusterDiscoveryService_StreamClustersClient, error)
|
|
|
|
DeltaClusters(ctx context.Context, opts ...grpc.CallOption) (ClusterDiscoveryService_DeltaClustersClient, error)
|
|
|
|
FetchClusters(ctx context.Context, in *DiscoveryRequest, opts ...grpc.CallOption) (*DiscoveryResponse, error)
|
2019-06-07 12:10:43 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
type clusterDiscoveryServiceClient struct {
|
|
|
|
cc *grpc.ClientConn
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func NewClusterDiscoveryServiceClient(cc *grpc.ClientConn) ClusterDiscoveryServiceClient {
|
|
|
|
return &clusterDiscoveryServiceClient{cc}
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func (c *clusterDiscoveryServiceClient) StreamClusters(ctx context.Context, opts ...grpc.CallOption) (ClusterDiscoveryService_StreamClustersClient, error) {
|
|
|
|
stream, err := c.cc.NewStream(ctx, &_ClusterDiscoveryService_serviceDesc.Streams[0], "/envoy.api.v2.ClusterDiscoveryService/StreamClusters", opts...)
|
2019-06-07 12:10:43 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
x := &clusterDiscoveryServiceStreamClustersClient{stream}
|
|
|
|
return x, nil
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
type ClusterDiscoveryService_StreamClustersClient interface {
|
|
|
|
Send(*DiscoveryRequest) error
|
|
|
|
Recv() (*DiscoveryResponse, error)
|
|
|
|
grpc.ClientStream
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
type clusterDiscoveryServiceStreamClustersClient struct {
|
|
|
|
grpc.ClientStream
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func (x *clusterDiscoveryServiceStreamClustersClient) Send(m *DiscoveryRequest) error {
|
|
|
|
return x.ClientStream.SendMsg(m)
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func (x *clusterDiscoveryServiceStreamClustersClient) Recv() (*DiscoveryResponse, error) {
|
|
|
|
m := new(DiscoveryResponse)
|
|
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
|
|
return nil, err
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
return m, nil
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func (c *clusterDiscoveryServiceClient) DeltaClusters(ctx context.Context, opts ...grpc.CallOption) (ClusterDiscoveryService_DeltaClustersClient, error) {
|
|
|
|
stream, err := c.cc.NewStream(ctx, &_ClusterDiscoveryService_serviceDesc.Streams[1], "/envoy.api.v2.ClusterDiscoveryService/DeltaClusters", opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
x := &clusterDiscoveryServiceDeltaClustersClient{stream}
|
|
|
|
return x, nil
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
type ClusterDiscoveryService_DeltaClustersClient interface {
|
|
|
|
Send(*DeltaDiscoveryRequest) error
|
|
|
|
Recv() (*DeltaDiscoveryResponse, error)
|
|
|
|
grpc.ClientStream
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
type clusterDiscoveryServiceDeltaClustersClient struct {
|
|
|
|
grpc.ClientStream
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func (x *clusterDiscoveryServiceDeltaClustersClient) Send(m *DeltaDiscoveryRequest) error {
|
|
|
|
return x.ClientStream.SendMsg(m)
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func (x *clusterDiscoveryServiceDeltaClustersClient) Recv() (*DeltaDiscoveryResponse, error) {
|
|
|
|
m := new(DeltaDiscoveryResponse)
|
|
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
|
|
return nil, err
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
return m, nil
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func (c *clusterDiscoveryServiceClient) FetchClusters(ctx context.Context, in *DiscoveryRequest, opts ...grpc.CallOption) (*DiscoveryResponse, error) {
|
|
|
|
out := new(DiscoveryResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/envoy.api.v2.ClusterDiscoveryService/FetchClusters", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
return out, nil
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
// ClusterDiscoveryServiceServer is the server API for ClusterDiscoveryService service.
|
|
|
|
type ClusterDiscoveryServiceServer interface {
|
|
|
|
StreamClusters(ClusterDiscoveryService_StreamClustersServer) error
|
|
|
|
DeltaClusters(ClusterDiscoveryService_DeltaClustersServer) error
|
|
|
|
FetchClusters(context.Context, *DiscoveryRequest) (*DiscoveryResponse, error)
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
// UnimplementedClusterDiscoveryServiceServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedClusterDiscoveryServiceServer struct {
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func (*UnimplementedClusterDiscoveryServiceServer) StreamClusters(srv ClusterDiscoveryService_StreamClustersServer) error {
|
|
|
|
return status.Errorf(codes.Unimplemented, "method StreamClusters not implemented")
|
2019-06-07 12:10:43 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
func (*UnimplementedClusterDiscoveryServiceServer) DeltaClusters(srv ClusterDiscoveryService_DeltaClustersServer) error {
|
|
|
|
return status.Errorf(codes.Unimplemented, "method DeltaClusters not implemented")
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
func (*UnimplementedClusterDiscoveryServiceServer) FetchClusters(ctx context.Context, req *DiscoveryRequest) (*DiscoveryResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FetchClusters not implemented")
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func RegisterClusterDiscoveryServiceServer(s *grpc.Server, srv ClusterDiscoveryServiceServer) {
|
|
|
|
s.RegisterService(&_ClusterDiscoveryService_serviceDesc, srv)
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func _ClusterDiscoveryService_StreamClusters_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
|
|
return srv.(ClusterDiscoveryServiceServer).StreamClusters(&clusterDiscoveryServiceStreamClustersServer{stream})
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
type ClusterDiscoveryService_StreamClustersServer interface {
|
|
|
|
Send(*DiscoveryResponse) error
|
|
|
|
Recv() (*DiscoveryRequest, error)
|
|
|
|
grpc.ServerStream
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
type clusterDiscoveryServiceStreamClustersServer struct {
|
|
|
|
grpc.ServerStream
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func (x *clusterDiscoveryServiceStreamClustersServer) Send(m *DiscoveryResponse) error {
|
|
|
|
return x.ServerStream.SendMsg(m)
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func (x *clusterDiscoveryServiceStreamClustersServer) Recv() (*DiscoveryRequest, error) {
|
|
|
|
m := new(DiscoveryRequest)
|
|
|
|
if err := x.ServerStream.RecvMsg(m); err != nil {
|
|
|
|
return nil, err
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
return m, nil
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func _ClusterDiscoveryService_DeltaClusters_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
|
|
return srv.(ClusterDiscoveryServiceServer).DeltaClusters(&clusterDiscoveryServiceDeltaClustersServer{stream})
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
type ClusterDiscoveryService_DeltaClustersServer interface {
|
|
|
|
Send(*DeltaDiscoveryResponse) error
|
|
|
|
Recv() (*DeltaDiscoveryRequest, error)
|
|
|
|
grpc.ServerStream
|
2019-06-07 12:10:43 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
type clusterDiscoveryServiceDeltaClustersServer struct {
|
|
|
|
grpc.ServerStream
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func (x *clusterDiscoveryServiceDeltaClustersServer) Send(m *DeltaDiscoveryResponse) error {
|
|
|
|
return x.ServerStream.SendMsg(m)
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func (x *clusterDiscoveryServiceDeltaClustersServer) Recv() (*DeltaDiscoveryRequest, error) {
|
|
|
|
m := new(DeltaDiscoveryRequest)
|
|
|
|
if err := x.ServerStream.RecvMsg(m); err != nil {
|
|
|
|
return nil, err
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
return m, nil
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func _ClusterDiscoveryService_FetchClusters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(DiscoveryRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(ClusterDiscoveryServiceServer).FetchClusters(ctx, in)
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/envoy.api.v2.ClusterDiscoveryService/FetchClusters",
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(ClusterDiscoveryServiceServer).FetchClusters(ctx, req.(*DiscoveryRequest))
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
return interceptor(ctx, in, info, handler)
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
var _ClusterDiscoveryService_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "envoy.api.v2.ClusterDiscoveryService",
|
|
|
|
HandlerType: (*ClusterDiscoveryServiceServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "FetchClusters",
|
|
|
|
Handler: _ClusterDiscoveryService_FetchClusters_Handler,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{
|
|
|
|
{
|
|
|
|
StreamName: "StreamClusters",
|
|
|
|
Handler: _ClusterDiscoveryService_StreamClusters_Handler,
|
|
|
|
ServerStreams: true,
|
|
|
|
ClientStreams: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
StreamName: "DeltaClusters",
|
|
|
|
Handler: _ClusterDiscoveryService_DeltaClusters_Handler,
|
|
|
|
ServerStreams: true,
|
|
|
|
ClientStreams: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Metadata: "envoy/api/v2/cds.proto",
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|