Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterStreamAvailabilityServiceServer(s grpc.ServiceRegistrar, srv StreamAvailabilityServiceServer)
- type Response
- type StreamAvailabilityServiceClient
- type StreamAvailabilityServiceServer
- type StreamAvailabilityService_WatchClient
- type StreamAvailabilityService_WatchServer
- type Target
- type UnimplementedStreamAvailabilityServiceServer
- type UnsafeStreamAvailabilityServiceServer
Constants ¶
const (
StreamAvailabilityService_Watch_FullMethodName = "/loadbalancer.v1.StreamAvailabilityService/Watch"
)
Variables ¶
var File_api_loadbalancer_v1_stream_proto protoreflect.FileDescriptor
var StreamAvailabilityService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "loadbalancer.v1.StreamAvailabilityService", HandlerType: (*StreamAvailabilityServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Watch", Handler: _StreamAvailabilityService_Watch_Handler, ServerStreams: true, }, }, Metadata: "api/loadbalancer/v1/stream.proto", }
StreamAvailabilityService_ServiceDesc is the grpc.ServiceDesc for StreamAvailabilityService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStreamAvailabilityServiceServer ¶
func RegisterStreamAvailabilityServiceServer(s grpc.ServiceRegistrar, srv StreamAvailabilityServiceServer)
Types ¶
type Response ¶
type Response struct { Targets []*Target `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetTargets ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type StreamAvailabilityServiceClient ¶
type StreamAvailabilityServiceClient interface {
Watch(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (StreamAvailabilityService_WatchClient, error)
}
StreamAvailabilityServiceClient is the client API for StreamAvailabilityService 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 NewStreamAvailabilityServiceClient ¶
func NewStreamAvailabilityServiceClient(cc grpc.ClientConnInterface) StreamAvailabilityServiceClient
type StreamAvailabilityServiceServer ¶
type StreamAvailabilityServiceServer interface { Watch(*emptypb.Empty, StreamAvailabilityService_WatchServer) error // contains filtered or unexported methods }
StreamAvailabilityServiceServer is the server API for StreamAvailabilityService service. All implementations must embed UnimplementedStreamAvailabilityServiceServer for forward compatibility
type StreamAvailabilityService_WatchClient ¶
type StreamAvailabilityService_WatchClient interface { Recv() (*Response, error) grpc.ClientStream }
type StreamAvailabilityService_WatchServer ¶
type StreamAvailabilityService_WatchServer interface { Send(*Response) error grpc.ServerStream }
type Target ¶
type Target struct { Context map[string]string `` /* 155-byte string literal not displayed */ Stream *v1.Stream `protobuf:"bytes,2,opt,name=stream,proto3" json:"stream,omitempty"` // contains filtered or unexported fields }
func (*Target) Descriptor
deprecated
func (*Target) GetContext ¶
func (*Target) ProtoMessage ¶
func (*Target) ProtoMessage()
func (*Target) ProtoReflect ¶
func (x *Target) ProtoReflect() protoreflect.Message
type UnimplementedStreamAvailabilityServiceServer ¶
type UnimplementedStreamAvailabilityServiceServer struct { }
UnimplementedStreamAvailabilityServiceServer must be embedded to have forward compatible implementations.
type UnsafeStreamAvailabilityServiceServer ¶
type UnsafeStreamAvailabilityServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStreamAvailabilityServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StreamAvailabilityServiceServer will result in compilation errors.