Documentation ¶
Index ¶
- Variables
- func RegisterStreamServiceServer(s grpc.ServiceRegistrar, srv StreamServiceServer)
- type StreamRequest
- type StreamResponse
- type StreamServer
- type StreamServiceClient
- type StreamServiceServer
- type StreamService_StreamClient
- type StreamService_StreamServer
- type UnimplementedStreamServiceServer
- type UnsafeStreamServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_github_com_rancher_opni_pkg_test_testgrpc_stream_proto protoreflect.FileDescriptor
var StreamService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "testgrpc.stream.StreamService", HandlerType: (*StreamServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Stream", Handler: _StreamService_Stream_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "github.com/rancher/opni/pkg/test/testgrpc/stream.proto", }
StreamService_ServiceDesc is the grpc.ServiceDesc for StreamService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStreamServiceServer ¶
func RegisterStreamServiceServer(s grpc.ServiceRegistrar, srv StreamServiceServer)
Types ¶
type StreamRequest ¶
type StreamRequest struct { Request string `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` // contains filtered or unexported fields }
func (*StreamRequest) Descriptor
deprecated
func (*StreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use StreamRequest.ProtoReflect.Descriptor instead.
func (*StreamRequest) GetRequest ¶
func (x *StreamRequest) GetRequest() string
func (*StreamRequest) ProtoMessage ¶
func (*StreamRequest) ProtoMessage()
func (*StreamRequest) ProtoReflect ¶
func (x *StreamRequest) ProtoReflect() protoreflect.Message
func (*StreamRequest) Reset ¶
func (x *StreamRequest) Reset()
func (*StreamRequest) String ¶
func (x *StreamRequest) String() string
type StreamResponse ¶
type StreamResponse struct { Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func (*StreamResponse) Descriptor
deprecated
func (*StreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use StreamResponse.ProtoReflect.Descriptor instead.
func (*StreamResponse) GetResponse ¶
func (x *StreamResponse) GetResponse() string
func (*StreamResponse) ProtoMessage ¶
func (*StreamResponse) ProtoMessage()
func (*StreamResponse) ProtoReflect ¶
func (x *StreamResponse) ProtoReflect() protoreflect.Message
func (*StreamResponse) Reset ¶
func (x *StreamResponse) Reset()
func (*StreamResponse) String ¶
func (x *StreamResponse) String() string
type StreamServer ¶
type StreamServer struct { UnsafeStreamServiceServer ServerHandler func(stream StreamService_StreamServer) error }
func (*StreamServer) Stream ¶
func (s *StreamServer) Stream(stream StreamService_StreamServer) error
type StreamServiceClient ¶
type StreamServiceClient interface {
Stream(ctx context.Context, opts ...grpc.CallOption) (StreamService_StreamClient, error)
}
StreamServiceClient is the client API for StreamService 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 NewStreamServiceClient ¶
func NewStreamServiceClient(cc grpc.ClientConnInterface) StreamServiceClient
type StreamServiceServer ¶
type StreamServiceServer interface { Stream(StreamService_StreamServer) error // contains filtered or unexported methods }
StreamServiceServer is the server API for StreamService service. All implementations must embed UnimplementedStreamServiceServer for forward compatibility
type StreamService_StreamClient ¶
type StreamService_StreamClient interface { Send(*StreamRequest) error Recv() (*StreamResponse, error) grpc.ClientStream }
type StreamService_StreamServer ¶
type StreamService_StreamServer interface { Send(*StreamResponse) error Recv() (*StreamRequest, error) grpc.ServerStream }
type UnimplementedStreamServiceServer ¶
type UnimplementedStreamServiceServer struct { }
UnimplementedStreamServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedStreamServiceServer) Stream ¶
func (UnimplementedStreamServiceServer) Stream(StreamService_StreamServer) error
type UnsafeStreamServiceServer ¶
type UnsafeStreamServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStreamServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StreamServiceServer will result in compilation errors.