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/rds.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"
|
2019-06-07 12:10:43 +00:00
|
|
|
_ "github.com/envoyproxy/protoc-gen-validate/validate"
|
2020-06-23 20:19:56 +00:00
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
_ "github.com/golang/protobuf/ptypes/wrappers"
|
|
|
|
_ "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 RdsDummy 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 *RdsDummy) Reset() { *m = RdsDummy{} }
|
|
|
|
func (m *RdsDummy) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*RdsDummy) ProtoMessage() {}
|
|
|
|
func (*RdsDummy) Descriptor() ([]byte, []int) {
|
2019-06-07 12:10:43 +00:00
|
|
|
return fileDescriptor_78812f46dcff924a, []int{0}
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
func (m *RdsDummy) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_RdsDummy.Unmarshal(m, b)
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
func (m *RdsDummy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_RdsDummy.Marshal(b, m, deterministic)
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
func (m *RdsDummy) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RdsDummy.Merge(m, src)
|
2019-06-07 12:10:43 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
func (m *RdsDummy) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_RdsDummy.Size(m)
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
2020-06-23 20:19:56 +00:00
|
|
|
func (m *RdsDummy) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RdsDummy.DiscardUnknown(m)
|
2019-06-07 12:10:43 +00:00
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
var xxx_messageInfo_RdsDummy proto.InternalMessageInfo
|
2019-06-07 12:10:43 +00:00
|
|
|
|
2018-10-03 18:18:55 +00:00
|
|
|
func init() {
|
2020-06-23 20:19:56 +00:00
|
|
|
proto.RegisterType((*RdsDummy)(nil), "envoy.api.v2.RdsDummy")
|
2019-06-07 12:10:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("envoy/api/v2/rds.proto", fileDescriptor_78812f46dcff924a) }
|
|
|
|
|
|
|
|
var fileDescriptor_78812f46dcff924a = []byte{
|
2020-06-23 20:19:56 +00:00
|
|
|
// 432 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0x3d, 0x6f, 0xd3, 0x40,
|
|
|
|
0x1c, 0xc6, 0xb9, 0x20, 0x12, 0x74, 0xc9, 0x00, 0x16, 0x84, 0xc8, 0x84, 0x24, 0x84, 0x57, 0x31,
|
|
|
|
0xd8, 0xc8, 0xd9, 0x32, 0x86, 0x08, 0x31, 0x86, 0x44, 0x30, 0x22, 0x5d, 0xec, 0x8b, 0x39, 0xc9,
|
|
|
|
0xf6, 0x1d, 0xf7, 0x62, 0xf0, 0x86, 0x98, 0x10, 0x0b, 0x03, 0x12, 0xe2, 0x03, 0xb0, 0xf5, 0x1b,
|
|
|
|
0xf4, 0x13, 0x74, 0xad, 0xfa, 0x15, 0x3a, 0x77, 0x68, 0xf7, 0xaa, 0xf2, 0xd9, 0x6e, 0x73, 0x8d,
|
|
|
|
0xda, 0x29, 0x5b, 0xe2, 0xdf, 0xf3, 0x7f, 0xfe, 0x2f, 0x7e, 0x0c, 0xdb, 0x38, 0x49, 0x69, 0xe6,
|
|
|
|
0x22, 0x46, 0xdc, 0xd4, 0x73, 0x79, 0x20, 0x1c, 0xc6, 0xa9, 0xa4, 0x56, 0x4b, 0x3f, 0x77, 0x10,
|
|
|
|
0x23, 0x4e, 0xea, 0xd9, 0x5d, 0x43, 0x15, 0x10, 0xe1, 0xd3, 0x14, 0xf3, 0xac, 0xd0, 0xda, 0xdd,
|
|
|
|
0x90, 0xd2, 0x30, 0xc2, 0x1a, 0xa3, 0x24, 0xa1, 0x12, 0x49, 0x42, 0x93, 0xd2, 0xc9, 0xee, 0x95,
|
|
|
|
0x54, 0xff, 0x5b, 0xaa, 0x95, 0xfb, 0x95, 0x23, 0xc6, 0x30, 0xaf, 0xf8, 0xa0, 0xf4, 0xbe, 0x28,
|
|
|
|
0x74, 0x39, 0x16, 0x54, 0x71, 0x1f, 0x57, 0x0e, 0x2a, 0x60, 0xc8, 0x10, 0xc4, 0x24, 0xe4, 0x48,
|
|
|
|
0x56, 0xfc, 0xd1, 0x06, 0x17, 0x12, 0x49, 0x55, 0x35, 0x78, 0x90, 0xa2, 0x88, 0x04, 0x48, 0x62,
|
|
|
|
0xb7, 0xfa, 0x51, 0x82, 0x8e, 0xb9, 0x3b, 0x55, 0x15, 0x19, 0x42, 0x78, 0x7b, 0x1e, 0x88, 0xa9,
|
|
|
|
0x8a, 0xe3, 0xcc, 0x3b, 0xaa, 0xc1, 0xfb, 0xf3, 0x9c, 0x4d, 0xab, 0xb5, 0x17, 0x98, 0xa7, 0xc4,
|
|
|
|
0xc7, 0xd6, 0x07, 0xd8, 0x5a, 0x48, 0x8e, 0x51, 0xac, 0xb1, 0xb0, 0x7a, 0xce, 0xfa, 0xd1, 0x9c,
|
|
|
|
0x73, 0xfd, 0x1c, 0x7f, 0x51, 0x58, 0x48, 0xbb, 0x7f, 0x25, 0x17, 0x8c, 0x26, 0x02, 0x0f, 0x6f,
|
|
|
|
0xbc, 0x04, 0xaf, 0x81, 0xf5, 0x09, 0x36, 0xa7, 0x38, 0x92, 0xa8, 0x74, 0x7d, 0x72, 0xa9, 0x2a,
|
|
|
|
0x47, 0x1b, 0xd6, 0x4f, 0xaf, 0x17, 0x19, 0xfe, 0x0a, 0x36, 0xdf, 0x62, 0xe9, 0x7f, 0xde, 0xd6,
|
|
|
|
0xd4, 0xcf, 0x7e, 0x1c, 0x1c, 0xfe, 0xa9, 0xb5, 0x87, 0xf7, 0x8c, 0x6c, 0x8c, 0xf5, 0x3d, 0x85,
|
|
|
|
0x66, 0x37, 0xc7, 0xe0, 0x95, 0xfd, 0xe2, 0xd7, 0xff, 0xbf, 0x27, 0x8d, 0xc7, 0xb0, 0x6f, 0xd8,
|
|
|
|
0xe9, 0x21, 0xde, 0xd0, 0x64, 0x45, 0x42, 0xc5, 0xf5, 0xdb, 0xf3, 0x76, 0x00, 0x7c, 0xf8, 0x91,
|
|
|
|
0x70, 0xa9, 0x50, 0xf4, 0x8e, 0x0a, 0xb9, 0x71, 0xf6, 0x00, 0xde, 0xd5, 0xfb, 0xad, 0x69, 0xb6,
|
|
|
|
0x7f, 0x25, 0xfb, 0xb9, 0x1e, 0x77, 0x00, 0x7b, 0x46, 0x49, 0x11, 0x92, 0xb5, 0xce, 0x93, 0xf7,
|
|
|
|
0xc7, 0xff, 0x4e, 0x7f, 0xdf, 0xea, 0x58, 0xc5, 0x87, 0xe4, 0x88, 0x62, 0xc8, 0x52, 0x98, 0x8e,
|
|
|
|
0x76, 0xbf, 0xef, 0xed, 0xd7, 0x6b, 0x77, 0x00, 0xb4, 0x09, 0x2d, 0xba, 0x33, 0x4e, 0xbf, 0x65,
|
|
|
|
0xc6, 0x20, 0x93, 0x3c, 0x6c, 0xb3, 0x3c, 0x78, 0x33, 0xf0, 0x13, 0x80, 0x59, 0x63, 0x59, 0xd7,
|
|
|
|
0x31, 0x1c, 0x9d, 0x05, 0x00, 0x00, 0xff, 0xff, 0x0f, 0x78, 0xb9, 0xf4, 0x9e, 0x03, 0x00, 0x00,
|
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 _ 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
|
|
|
|
|
2019-06-07 12:10:43 +00:00
|
|
|
// RouteDiscoveryServiceClient is the client API for RouteDiscoveryService service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
2018-10-03 18:18:55 +00:00
|
|
|
type RouteDiscoveryServiceClient interface {
|
|
|
|
StreamRoutes(ctx context.Context, opts ...grpc.CallOption) (RouteDiscoveryService_StreamRoutesClient, error)
|
2019-06-07 12:10:43 +00:00
|
|
|
DeltaRoutes(ctx context.Context, opts ...grpc.CallOption) (RouteDiscoveryService_DeltaRoutesClient, error)
|
2018-10-03 18:18:55 +00:00
|
|
|
FetchRoutes(ctx context.Context, in *DiscoveryRequest, opts ...grpc.CallOption) (*DiscoveryResponse, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type routeDiscoveryServiceClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRouteDiscoveryServiceClient(cc *grpc.ClientConn) RouteDiscoveryServiceClient {
|
|
|
|
return &routeDiscoveryServiceClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *routeDiscoveryServiceClient) StreamRoutes(ctx context.Context, opts ...grpc.CallOption) (RouteDiscoveryService_StreamRoutesClient, error) {
|
|
|
|
stream, err := c.cc.NewStream(ctx, &_RouteDiscoveryService_serviceDesc.Streams[0], "/envoy.api.v2.RouteDiscoveryService/StreamRoutes", opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
x := &routeDiscoveryServiceStreamRoutesClient{stream}
|
|
|
|
return x, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type RouteDiscoveryService_StreamRoutesClient interface {
|
|
|
|
Send(*DiscoveryRequest) error
|
|
|
|
Recv() (*DiscoveryResponse, error)
|
|
|
|
grpc.ClientStream
|
|
|
|
}
|
|
|
|
|
|
|
|
type routeDiscoveryServiceStreamRoutesClient struct {
|
|
|
|
grpc.ClientStream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *routeDiscoveryServiceStreamRoutesClient) Send(m *DiscoveryRequest) error {
|
|
|
|
return x.ClientStream.SendMsg(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *routeDiscoveryServiceStreamRoutesClient) Recv() (*DiscoveryResponse, error) {
|
|
|
|
m := new(DiscoveryResponse)
|
|
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return m, nil
|
|
|
|
}
|
|
|
|
|
2019-06-07 12:10:43 +00:00
|
|
|
func (c *routeDiscoveryServiceClient) DeltaRoutes(ctx context.Context, opts ...grpc.CallOption) (RouteDiscoveryService_DeltaRoutesClient, error) {
|
|
|
|
stream, err := c.cc.NewStream(ctx, &_RouteDiscoveryService_serviceDesc.Streams[1], "/envoy.api.v2.RouteDiscoveryService/DeltaRoutes", opts...)
|
2018-10-03 18:18:55 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2019-06-07 12:10:43 +00:00
|
|
|
x := &routeDiscoveryServiceDeltaRoutesClient{stream}
|
2018-10-03 18:18:55 +00:00
|
|
|
return x, nil
|
|
|
|
}
|
|
|
|
|
2019-06-07 12:10:43 +00:00
|
|
|
type RouteDiscoveryService_DeltaRoutesClient interface {
|
|
|
|
Send(*DeltaDiscoveryRequest) error
|
|
|
|
Recv() (*DeltaDiscoveryResponse, error)
|
2018-10-03 18:18:55 +00:00
|
|
|
grpc.ClientStream
|
|
|
|
}
|
|
|
|
|
2019-06-07 12:10:43 +00:00
|
|
|
type routeDiscoveryServiceDeltaRoutesClient struct {
|
2018-10-03 18:18:55 +00:00
|
|
|
grpc.ClientStream
|
|
|
|
}
|
|
|
|
|
2019-06-07 12:10:43 +00:00
|
|
|
func (x *routeDiscoveryServiceDeltaRoutesClient) Send(m *DeltaDiscoveryRequest) error {
|
2018-10-03 18:18:55 +00:00
|
|
|
return x.ClientStream.SendMsg(m)
|
|
|
|
}
|
|
|
|
|
2019-06-07 12:10:43 +00:00
|
|
|
func (x *routeDiscoveryServiceDeltaRoutesClient) Recv() (*DeltaDiscoveryResponse, error) {
|
|
|
|
m := new(DeltaDiscoveryResponse)
|
2018-10-03 18:18:55 +00:00
|
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return m, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *routeDiscoveryServiceClient) FetchRoutes(ctx context.Context, in *DiscoveryRequest, opts ...grpc.CallOption) (*DiscoveryResponse, error) {
|
|
|
|
out := new(DiscoveryResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/envoy.api.v2.RouteDiscoveryService/FetchRoutes", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-06-07 12:10:43 +00:00
|
|
|
// RouteDiscoveryServiceServer is the server API for RouteDiscoveryService service.
|
2018-10-03 18:18:55 +00:00
|
|
|
type RouteDiscoveryServiceServer interface {
|
|
|
|
StreamRoutes(RouteDiscoveryService_StreamRoutesServer) error
|
2019-06-07 12:10:43 +00:00
|
|
|
DeltaRoutes(RouteDiscoveryService_DeltaRoutesServer) error
|
2018-10-03 18:18:55 +00:00
|
|
|
FetchRoutes(context.Context, *DiscoveryRequest) (*DiscoveryResponse, error)
|
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
// UnimplementedRouteDiscoveryServiceServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedRouteDiscoveryServiceServer struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UnimplementedRouteDiscoveryServiceServer) StreamRoutes(srv RouteDiscoveryService_StreamRoutesServer) error {
|
|
|
|
return status.Errorf(codes.Unimplemented, "method StreamRoutes not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedRouteDiscoveryServiceServer) DeltaRoutes(srv RouteDiscoveryService_DeltaRoutesServer) error {
|
|
|
|
return status.Errorf(codes.Unimplemented, "method DeltaRoutes not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedRouteDiscoveryServiceServer) FetchRoutes(ctx context.Context, req *DiscoveryRequest) (*DiscoveryResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FetchRoutes not implemented")
|
|
|
|
}
|
|
|
|
|
2018-10-03 18:18:55 +00:00
|
|
|
func RegisterRouteDiscoveryServiceServer(s *grpc.Server, srv RouteDiscoveryServiceServer) {
|
|
|
|
s.RegisterService(&_RouteDiscoveryService_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _RouteDiscoveryService_StreamRoutes_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
|
|
return srv.(RouteDiscoveryServiceServer).StreamRoutes(&routeDiscoveryServiceStreamRoutesServer{stream})
|
|
|
|
}
|
|
|
|
|
|
|
|
type RouteDiscoveryService_StreamRoutesServer interface {
|
|
|
|
Send(*DiscoveryResponse) error
|
|
|
|
Recv() (*DiscoveryRequest, error)
|
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
|
|
|
type routeDiscoveryServiceStreamRoutesServer struct {
|
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *routeDiscoveryServiceStreamRoutesServer) Send(m *DiscoveryResponse) error {
|
|
|
|
return x.ServerStream.SendMsg(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *routeDiscoveryServiceStreamRoutesServer) Recv() (*DiscoveryRequest, error) {
|
|
|
|
m := new(DiscoveryRequest)
|
|
|
|
if err := x.ServerStream.RecvMsg(m); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return m, nil
|
|
|
|
}
|
|
|
|
|
2019-06-07 12:10:43 +00:00
|
|
|
func _RouteDiscoveryService_DeltaRoutes_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
|
|
return srv.(RouteDiscoveryServiceServer).DeltaRoutes(&routeDiscoveryServiceDeltaRoutesServer{stream})
|
2018-10-03 18:18:55 +00:00
|
|
|
}
|
|
|
|
|
2019-06-07 12:10:43 +00:00
|
|
|
type RouteDiscoveryService_DeltaRoutesServer interface {
|
|
|
|
Send(*DeltaDiscoveryResponse) error
|
|
|
|
Recv() (*DeltaDiscoveryRequest, error)
|
2018-10-03 18:18:55 +00:00
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
2019-06-07 12:10:43 +00:00
|
|
|
type routeDiscoveryServiceDeltaRoutesServer struct {
|
2018-10-03 18:18:55 +00:00
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
2019-06-07 12:10:43 +00:00
|
|
|
func (x *routeDiscoveryServiceDeltaRoutesServer) Send(m *DeltaDiscoveryResponse) error {
|
2018-10-03 18:18:55 +00:00
|
|
|
return x.ServerStream.SendMsg(m)
|
|
|
|
}
|
|
|
|
|
2019-06-07 12:10:43 +00:00
|
|
|
func (x *routeDiscoveryServiceDeltaRoutesServer) Recv() (*DeltaDiscoveryRequest, error) {
|
|
|
|
m := new(DeltaDiscoveryRequest)
|
2018-10-03 18:18:55 +00:00
|
|
|
if err := x.ServerStream.RecvMsg(m); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return m, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func _RouteDiscoveryService_FetchRoutes_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
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(RouteDiscoveryServiceServer).FetchRoutes(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/envoy.api.v2.RouteDiscoveryService/FetchRoutes",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(RouteDiscoveryServiceServer).FetchRoutes(ctx, req.(*DiscoveryRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
var _RouteDiscoveryService_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "envoy.api.v2.RouteDiscoveryService",
|
|
|
|
HandlerType: (*RouteDiscoveryServiceServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "FetchRoutes",
|
|
|
|
Handler: _RouteDiscoveryService_FetchRoutes_Handler,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{
|
|
|
|
{
|
|
|
|
StreamName: "StreamRoutes",
|
|
|
|
Handler: _RouteDiscoveryService_StreamRoutes_Handler,
|
|
|
|
ServerStreams: true,
|
|
|
|
ClientStreams: true,
|
|
|
|
},
|
|
|
|
{
|
2019-06-07 12:10:43 +00:00
|
|
|
StreamName: "DeltaRoutes",
|
|
|
|
Handler: _RouteDiscoveryService_DeltaRoutes_Handler,
|
|
|
|
ServerStreams: true,
|
|
|
|
ClientStreams: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Metadata: "envoy/api/v2/rds.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
// VirtualHostDiscoveryServiceClient is the client API for VirtualHostDiscoveryService service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type VirtualHostDiscoveryServiceClient interface {
|
|
|
|
DeltaVirtualHosts(ctx context.Context, opts ...grpc.CallOption) (VirtualHostDiscoveryService_DeltaVirtualHostsClient, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type virtualHostDiscoveryServiceClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewVirtualHostDiscoveryServiceClient(cc *grpc.ClientConn) VirtualHostDiscoveryServiceClient {
|
|
|
|
return &virtualHostDiscoveryServiceClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *virtualHostDiscoveryServiceClient) DeltaVirtualHosts(ctx context.Context, opts ...grpc.CallOption) (VirtualHostDiscoveryService_DeltaVirtualHostsClient, error) {
|
|
|
|
stream, err := c.cc.NewStream(ctx, &_VirtualHostDiscoveryService_serviceDesc.Streams[0], "/envoy.api.v2.VirtualHostDiscoveryService/DeltaVirtualHosts", opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
x := &virtualHostDiscoveryServiceDeltaVirtualHostsClient{stream}
|
|
|
|
return x, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type VirtualHostDiscoveryService_DeltaVirtualHostsClient interface {
|
|
|
|
Send(*DeltaDiscoveryRequest) error
|
|
|
|
Recv() (*DeltaDiscoveryResponse, error)
|
|
|
|
grpc.ClientStream
|
|
|
|
}
|
|
|
|
|
|
|
|
type virtualHostDiscoveryServiceDeltaVirtualHostsClient struct {
|
|
|
|
grpc.ClientStream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *virtualHostDiscoveryServiceDeltaVirtualHostsClient) Send(m *DeltaDiscoveryRequest) error {
|
|
|
|
return x.ClientStream.SendMsg(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *virtualHostDiscoveryServiceDeltaVirtualHostsClient) Recv() (*DeltaDiscoveryResponse, error) {
|
|
|
|
m := new(DeltaDiscoveryResponse)
|
|
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return m, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// VirtualHostDiscoveryServiceServer is the server API for VirtualHostDiscoveryService service.
|
|
|
|
type VirtualHostDiscoveryServiceServer interface {
|
|
|
|
DeltaVirtualHosts(VirtualHostDiscoveryService_DeltaVirtualHostsServer) error
|
|
|
|
}
|
|
|
|
|
2020-06-23 20:19:56 +00:00
|
|
|
// UnimplementedVirtualHostDiscoveryServiceServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedVirtualHostDiscoveryServiceServer struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UnimplementedVirtualHostDiscoveryServiceServer) DeltaVirtualHosts(srv VirtualHostDiscoveryService_DeltaVirtualHostsServer) error {
|
|
|
|
return status.Errorf(codes.Unimplemented, "method DeltaVirtualHosts not implemented")
|
|
|
|
}
|
|
|
|
|
2019-06-07 12:10:43 +00:00
|
|
|
func RegisterVirtualHostDiscoveryServiceServer(s *grpc.Server, srv VirtualHostDiscoveryServiceServer) {
|
|
|
|
s.RegisterService(&_VirtualHostDiscoveryService_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _VirtualHostDiscoveryService_DeltaVirtualHosts_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
|
|
return srv.(VirtualHostDiscoveryServiceServer).DeltaVirtualHosts(&virtualHostDiscoveryServiceDeltaVirtualHostsServer{stream})
|
|
|
|
}
|
|
|
|
|
|
|
|
type VirtualHostDiscoveryService_DeltaVirtualHostsServer interface {
|
|
|
|
Send(*DeltaDiscoveryResponse) error
|
|
|
|
Recv() (*DeltaDiscoveryRequest, error)
|
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
|
|
|
type virtualHostDiscoveryServiceDeltaVirtualHostsServer struct {
|
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *virtualHostDiscoveryServiceDeltaVirtualHostsServer) Send(m *DeltaDiscoveryResponse) error {
|
|
|
|
return x.ServerStream.SendMsg(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *virtualHostDiscoveryServiceDeltaVirtualHostsServer) Recv() (*DeltaDiscoveryRequest, error) {
|
|
|
|
m := new(DeltaDiscoveryRequest)
|
|
|
|
if err := x.ServerStream.RecvMsg(m); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return m, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
var _VirtualHostDiscoveryService_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "envoy.api.v2.VirtualHostDiscoveryService",
|
|
|
|
HandlerType: (*VirtualHostDiscoveryServiceServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{},
|
|
|
|
Streams: []grpc.StreamDesc{
|
|
|
|
{
|
|
|
|
StreamName: "DeltaVirtualHosts",
|
|
|
|
Handler: _VirtualHostDiscoveryService_DeltaVirtualHosts_Handler,
|
2018-10-03 18:18:55 +00:00
|
|
|
ServerStreams: true,
|
|
|
|
ClientStreams: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Metadata: "envoy/api/v2/rds.proto",
|
|
|
|
}
|