Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterEndpointDiscoveryServiceServer(s grpc.ServiceRegistrar, srv EndpointDiscoveryServiceServer)
- func RegisterLocalityEndpointDiscoveryServiceServer(s grpc.ServiceRegistrar, srv LocalityEndpointDiscoveryServiceServer)
- type EdsDummy
- type EdsDummyMultiError
- type EdsDummyValidationError
- type EndpointDiscoveryServiceClient
- type EndpointDiscoveryServiceServer
- type EndpointDiscoveryService_DeltaEndpointsClient
- type EndpointDiscoveryService_DeltaEndpointsServer
- type EndpointDiscoveryService_StreamEndpointsClient
- type EndpointDiscoveryService_StreamEndpointsServer
- type LedsDummy
- type LedsDummyMultiError
- type LedsDummyValidationError
- type LocalityEndpointDiscoveryServiceClient
- type LocalityEndpointDiscoveryServiceServer
- type LocalityEndpointDiscoveryService_DeltaLocalityEndpointsClient
- type LocalityEndpointDiscoveryService_DeltaLocalityEndpointsServer
- type UnimplementedEndpointDiscoveryServiceServer
- func (UnimplementedEndpointDiscoveryServiceServer) DeltaEndpoints(EndpointDiscoveryService_DeltaEndpointsServer) error
- func (UnimplementedEndpointDiscoveryServiceServer) FetchEndpoints(context.Context, *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error)
- func (UnimplementedEndpointDiscoveryServiceServer) StreamEndpoints(EndpointDiscoveryService_StreamEndpointsServer) error
- type UnimplementedLocalityEndpointDiscoveryServiceServer
- type UnsafeEndpointDiscoveryServiceServer
- type UnsafeLocalityEndpointDiscoveryServiceServer
Constants ¶
const ( EndpointDiscoveryService_StreamEndpoints_FullMethodName = "/envoy.service.endpoint.v3.EndpointDiscoveryService/StreamEndpoints" EndpointDiscoveryService_DeltaEndpoints_FullMethodName = "/envoy.service.endpoint.v3.EndpointDiscoveryService/DeltaEndpoints" EndpointDiscoveryService_FetchEndpoints_FullMethodName = "/envoy.service.endpoint.v3.EndpointDiscoveryService/FetchEndpoints" )
const (
LocalityEndpointDiscoveryService_DeltaLocalityEndpoints_FullMethodName = "/envoy.service.endpoint.v3.LocalityEndpointDiscoveryService/DeltaLocalityEndpoints"
)
Variables ¶
var EndpointDiscoveryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "envoy.service.endpoint.v3.EndpointDiscoveryService", HandlerType: (*EndpointDiscoveryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FetchEndpoints", Handler: _EndpointDiscoveryService_FetchEndpoints_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "StreamEndpoints", Handler: _EndpointDiscoveryService_StreamEndpoints_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "DeltaEndpoints", Handler: _EndpointDiscoveryService_DeltaEndpoints_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "envoy/service/endpoint/v3/eds.proto", }
EndpointDiscoveryService_ServiceDesc is the grpc.ServiceDesc for EndpointDiscoveryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_envoy_service_endpoint_v3_eds_proto protoreflect.FileDescriptor
var File_envoy_service_endpoint_v3_leds_proto protoreflect.FileDescriptor
var LocalityEndpointDiscoveryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "envoy.service.endpoint.v3.LocalityEndpointDiscoveryService", HandlerType: (*LocalityEndpointDiscoveryServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "DeltaLocalityEndpoints", Handler: _LocalityEndpointDiscoveryService_DeltaLocalityEndpoints_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "envoy/service/endpoint/v3/leds.proto", }
LocalityEndpointDiscoveryService_ServiceDesc is the grpc.ServiceDesc for LocalityEndpointDiscoveryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterEndpointDiscoveryServiceServer ¶
func RegisterEndpointDiscoveryServiceServer(s grpc.ServiceRegistrar, srv EndpointDiscoveryServiceServer)
func RegisterLocalityEndpointDiscoveryServiceServer ¶ added in v0.10.0
func RegisterLocalityEndpointDiscoveryServiceServer(s grpc.ServiceRegistrar, srv LocalityEndpointDiscoveryServiceServer)
Types ¶
type EdsDummy ¶
type EdsDummy struct {
// contains filtered or unexported fields
}
[#not-implemented-hide:] Not configuration. Workaround c++ protobuf issue with importing services: https://github.com/google/protobuf/issues/4221 and protoxform to upgrade the file.
func (*EdsDummy) Descriptor
deprecated
func (*EdsDummy) ProtoMessage ¶
func (*EdsDummy) ProtoMessage()
func (*EdsDummy) ProtoReflect ¶ added in v0.9.6
func (x *EdsDummy) ProtoReflect() protoreflect.Message
func (*EdsDummy) Validate ¶
Validate checks the field values on EdsDummy with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*EdsDummy) ValidateAll ¶ added in v0.10.0
ValidateAll checks the field values on EdsDummy with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EdsDummyMultiError, or nil if none found.
type EdsDummyMultiError ¶ added in v0.10.0
type EdsDummyMultiError []error
EdsDummyMultiError is an error wrapping multiple validation errors returned by EdsDummy.ValidateAll() if the designated constraints aren't met.
func (EdsDummyMultiError) AllErrors ¶ added in v0.10.0
func (m EdsDummyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EdsDummyMultiError) Error ¶ added in v0.10.0
func (m EdsDummyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EdsDummyValidationError ¶
type EdsDummyValidationError struct {
// contains filtered or unexported fields
}
EdsDummyValidationError is the validation error returned by EdsDummy.Validate if the designated constraints aren't met.
func (EdsDummyValidationError) Cause ¶
func (e EdsDummyValidationError) Cause() error
Cause function returns cause value.
func (EdsDummyValidationError) Error ¶
func (e EdsDummyValidationError) Error() string
Error satisfies the builtin error interface
func (EdsDummyValidationError) ErrorName ¶
func (e EdsDummyValidationError) ErrorName() string
ErrorName returns error name.
func (EdsDummyValidationError) Field ¶
func (e EdsDummyValidationError) Field() string
Field function returns field value.
func (EdsDummyValidationError) Key ¶
func (e EdsDummyValidationError) Key() bool
Key function returns key value.
func (EdsDummyValidationError) Reason ¶
func (e EdsDummyValidationError) Reason() string
Reason function returns reason value.
type EndpointDiscoveryServiceClient ¶
type EndpointDiscoveryServiceClient interface { // The resource_names field in DiscoveryRequest specifies a list of clusters // to subscribe to updates for. StreamEndpoints(ctx context.Context, opts ...grpc.CallOption) (EndpointDiscoveryService_StreamEndpointsClient, error) DeltaEndpoints(ctx context.Context, opts ...grpc.CallOption) (EndpointDiscoveryService_DeltaEndpointsClient, error) FetchEndpoints(ctx context.Context, in *v3.DiscoveryRequest, opts ...grpc.CallOption) (*v3.DiscoveryResponse, error) }
EndpointDiscoveryServiceClient is the client API for EndpointDiscoveryService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEndpointDiscoveryServiceClient ¶
func NewEndpointDiscoveryServiceClient(cc grpc.ClientConnInterface) EndpointDiscoveryServiceClient
type EndpointDiscoveryServiceServer ¶
type EndpointDiscoveryServiceServer interface { // The resource_names field in DiscoveryRequest specifies a list of clusters // to subscribe to updates for. StreamEndpoints(EndpointDiscoveryService_StreamEndpointsServer) error DeltaEndpoints(EndpointDiscoveryService_DeltaEndpointsServer) error FetchEndpoints(context.Context, *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error) }
EndpointDiscoveryServiceServer is the server API for EndpointDiscoveryService service. All implementations should embed UnimplementedEndpointDiscoveryServiceServer for forward compatibility
type EndpointDiscoveryService_DeltaEndpointsClient ¶
type EndpointDiscoveryService_DeltaEndpointsClient interface { Send(*v3.DeltaDiscoveryRequest) error Recv() (*v3.DeltaDiscoveryResponse, error) grpc.ClientStream }
type EndpointDiscoveryService_DeltaEndpointsServer ¶
type EndpointDiscoveryService_DeltaEndpointsServer interface { Send(*v3.DeltaDiscoveryResponse) error Recv() (*v3.DeltaDiscoveryRequest, error) grpc.ServerStream }
type EndpointDiscoveryService_StreamEndpointsClient ¶
type EndpointDiscoveryService_StreamEndpointsClient interface { Send(*v3.DiscoveryRequest) error Recv() (*v3.DiscoveryResponse, error) grpc.ClientStream }
type EndpointDiscoveryService_StreamEndpointsServer ¶
type EndpointDiscoveryService_StreamEndpointsServer interface { Send(*v3.DiscoveryResponse) error Recv() (*v3.DiscoveryRequest, error) grpc.ServerStream }
type LedsDummy ¶ added in v0.10.0
type LedsDummy struct {
// contains filtered or unexported fields
}
[#not-implemented-hide:] Not configuration. Workaround c++ protobuf issue with importing services: https://github.com/google/protobuf/issues/4221 and protoxform to upgrade the file.
func (*LedsDummy) Descriptor
deprecated
added in
v0.10.0
func (*LedsDummy) ProtoMessage ¶ added in v0.10.0
func (*LedsDummy) ProtoMessage()
func (*LedsDummy) ProtoReflect ¶ added in v0.10.0
func (x *LedsDummy) ProtoReflect() protoreflect.Message
func (*LedsDummy) Validate ¶ added in v0.10.0
Validate checks the field values on LedsDummy with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LedsDummy) ValidateAll ¶ added in v0.10.0
ValidateAll checks the field values on LedsDummy with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LedsDummyMultiError, or nil if none found.
type LedsDummyMultiError ¶ added in v0.10.0
type LedsDummyMultiError []error
LedsDummyMultiError is an error wrapping multiple validation errors returned by LedsDummy.ValidateAll() if the designated constraints aren't met.
func (LedsDummyMultiError) AllErrors ¶ added in v0.10.0
func (m LedsDummyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LedsDummyMultiError) Error ¶ added in v0.10.0
func (m LedsDummyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LedsDummyValidationError ¶ added in v0.10.0
type LedsDummyValidationError struct {
// contains filtered or unexported fields
}
LedsDummyValidationError is the validation error returned by LedsDummy.Validate if the designated constraints aren't met.
func (LedsDummyValidationError) Cause ¶ added in v0.10.0
func (e LedsDummyValidationError) Cause() error
Cause function returns cause value.
func (LedsDummyValidationError) Error ¶ added in v0.10.0
func (e LedsDummyValidationError) Error() string
Error satisfies the builtin error interface
func (LedsDummyValidationError) ErrorName ¶ added in v0.10.0
func (e LedsDummyValidationError) ErrorName() string
ErrorName returns error name.
func (LedsDummyValidationError) Field ¶ added in v0.10.0
func (e LedsDummyValidationError) Field() string
Field function returns field value.
func (LedsDummyValidationError) Key ¶ added in v0.10.0
func (e LedsDummyValidationError) Key() bool
Key function returns key value.
func (LedsDummyValidationError) Reason ¶ added in v0.10.0
func (e LedsDummyValidationError) Reason() string
Reason function returns reason value.
type LocalityEndpointDiscoveryServiceClient ¶ added in v0.10.0
type LocalityEndpointDiscoveryServiceClient interface { // The resource_names_subscribe resource_names_unsubscribe fields in DeltaDiscoveryRequest // specify a list of glob collections to subscribe to updates for. DeltaLocalityEndpoints(ctx context.Context, opts ...grpc.CallOption) (LocalityEndpointDiscoveryService_DeltaLocalityEndpointsClient, error) }
LocalityEndpointDiscoveryServiceClient is the client API for LocalityEndpointDiscoveryService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewLocalityEndpointDiscoveryServiceClient ¶ added in v0.10.0
func NewLocalityEndpointDiscoveryServiceClient(cc grpc.ClientConnInterface) LocalityEndpointDiscoveryServiceClient
type LocalityEndpointDiscoveryServiceServer ¶ added in v0.10.0
type LocalityEndpointDiscoveryServiceServer interface { // The resource_names_subscribe resource_names_unsubscribe fields in DeltaDiscoveryRequest // specify a list of glob collections to subscribe to updates for. DeltaLocalityEndpoints(LocalityEndpointDiscoveryService_DeltaLocalityEndpointsServer) error }
LocalityEndpointDiscoveryServiceServer is the server API for LocalityEndpointDiscoveryService service. All implementations should embed UnimplementedLocalityEndpointDiscoveryServiceServer for forward compatibility
type LocalityEndpointDiscoveryService_DeltaLocalityEndpointsClient ¶ added in v0.10.0
type LocalityEndpointDiscoveryService_DeltaLocalityEndpointsClient interface { Send(*v3.DeltaDiscoveryRequest) error Recv() (*v3.DeltaDiscoveryResponse, error) grpc.ClientStream }
type LocalityEndpointDiscoveryService_DeltaLocalityEndpointsServer ¶ added in v0.10.0
type LocalityEndpointDiscoveryService_DeltaLocalityEndpointsServer interface { Send(*v3.DeltaDiscoveryResponse) error Recv() (*v3.DeltaDiscoveryRequest, error) grpc.ServerStream }
type UnimplementedEndpointDiscoveryServiceServer ¶
type UnimplementedEndpointDiscoveryServiceServer struct { }
UnimplementedEndpointDiscoveryServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedEndpointDiscoveryServiceServer) DeltaEndpoints ¶
func (UnimplementedEndpointDiscoveryServiceServer) DeltaEndpoints(EndpointDiscoveryService_DeltaEndpointsServer) error
func (UnimplementedEndpointDiscoveryServiceServer) FetchEndpoints ¶
func (UnimplementedEndpointDiscoveryServiceServer) FetchEndpoints(context.Context, *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error)
func (UnimplementedEndpointDiscoveryServiceServer) StreamEndpoints ¶
func (UnimplementedEndpointDiscoveryServiceServer) StreamEndpoints(EndpointDiscoveryService_StreamEndpointsServer) error
type UnimplementedLocalityEndpointDiscoveryServiceServer ¶ added in v0.10.0
type UnimplementedLocalityEndpointDiscoveryServiceServer struct { }
UnimplementedLocalityEndpointDiscoveryServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedLocalityEndpointDiscoveryServiceServer) DeltaLocalityEndpoints ¶ added in v0.10.0
func (UnimplementedLocalityEndpointDiscoveryServiceServer) DeltaLocalityEndpoints(LocalityEndpointDiscoveryService_DeltaLocalityEndpointsServer) error
type UnsafeEndpointDiscoveryServiceServer ¶ added in v0.13.0
type UnsafeEndpointDiscoveryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeEndpointDiscoveryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EndpointDiscoveryServiceServer will result in compilation errors.
type UnsafeLocalityEndpointDiscoveryServiceServer ¶ added in v0.13.0
type UnsafeLocalityEndpointDiscoveryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLocalityEndpointDiscoveryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LocalityEndpointDiscoveryServiceServer will result in compilation errors.