Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_github_com_rancher_opni_pkg_apis_stream_v1_stream_proto protoreflect.FileDescriptor
var Stream_ServiceDesc = grpc.ServiceDesc{ ServiceName: "stream.Stream", HandlerType: (*StreamServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Connect", Handler: _Stream_Connect_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "github.com/rancher/opni/pkg/apis/stream/v1/stream.proto", }
Stream_ServiceDesc is the grpc.ServiceDesc for Stream service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStreamServer ¶
func RegisterStreamServer(s grpc.ServiceRegistrar, srv StreamServer)
Types ¶
type StreamClient ¶
type StreamClient interface {
Connect(ctx context.Context, opts ...grpc.CallOption) (Stream_ConnectClient, error)
}
StreamClient is the client API for Stream 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 NewStreamClient ¶
func NewStreamClient(cc grpc.ClientConnInterface) StreamClient
type StreamServer ¶
type StreamServer interface { Connect(Stream_ConnectServer) error // contains filtered or unexported methods }
StreamServer is the server API for Stream service. All implementations must embed UnimplementedStreamServer for forward compatibility
type Stream_ConnectClient ¶
type Stream_ConnectServer ¶
type UnimplementedStreamServer ¶
type UnimplementedStreamServer struct { }
UnimplementedStreamServer must be embedded to have forward compatible implementations.
func (UnimplementedStreamServer) Connect ¶
func (UnimplementedStreamServer) Connect(Stream_ConnectServer) error
type UnsafeStreamServer ¶
type UnsafeStreamServer interface {
// contains filtered or unexported methods
}
UnsafeStreamServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StreamServer will result in compilation errors.