v1

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StreamAvailabilityService_Watch_FullMethodName = "/loadbalancer.v1.StreamAvailabilityService/Watch"
)

Variables

View Source
var File_api_loadbalancer_v1_stream_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetTargets

func (x *Response) GetTargets() []*Target

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Target.ProtoReflect.Descriptor instead.

func (*Target) GetContext

func (x *Target) GetContext() map[string]string

func (*Target) GetStream

func (x *Target) GetStream() *v1.Stream

func (*Target) ProtoMessage

func (*Target) ProtoMessage()

func (*Target) ProtoReflect

func (x *Target) ProtoReflect() protoreflect.Message

func (*Target) Reset

func (x *Target) Reset()

func (*Target) String

func (x *Target) String() string

type UnimplementedStreamAvailabilityServiceServer

type UnimplementedStreamAvailabilityServiceServer struct {
}

UnimplementedStreamAvailabilityServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedStreamAvailabilityServiceServer) Watch

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL