Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_pkg_grpcstreamer_streamer_proto protoreflect.FileDescriptor
var Streamer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Streamer", HandlerType: (*StreamerServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Stream", Handler: _Streamer_Stream_Handler, ClientStreams: true, }, }, Metadata: "pkg/grpcstreamer/streamer.proto", }
Streamer_ServiceDesc is the grpc.ServiceDesc for Streamer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStreamerServer ¶
func RegisterStreamerServer(s grpc.ServiceRegistrar, srv StreamerServer)
Types ¶
type Result ¶
type Result struct { ReceivedCount uint32 `protobuf:"varint,1,opt,name=receivedCount,proto3" json:"receivedCount,omitempty"` // contains filtered or unexported fields }
func (*Result) Descriptor
deprecated
func (*Result) GetReceivedCount ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type StreamerClient ¶
type StreamerClient interface {
Stream(ctx context.Context, opts ...grpc.CallOption) (Streamer_StreamClient, error)
}
StreamerClient is the client API for Streamer 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 NewStreamerClient ¶
func NewStreamerClient(cc grpc.ClientConnInterface) StreamerClient
type StreamerServer ¶
type StreamerServer interface { Stream(Streamer_StreamServer) error // contains filtered or unexported methods }
StreamerServer is the server API for Streamer service. All implementations must embed UnimplementedStreamerServer for forward compatibility
type Streamer_StreamClient ¶
type Streamer_StreamServer ¶
type UnimplementedStreamerServer ¶
type UnimplementedStreamerServer struct { }
UnimplementedStreamerServer must be embedded to have forward compatible implementations.
func (UnimplementedStreamerServer) Stream ¶
func (UnimplementedStreamerServer) Stream(Streamer_StreamServer) error
type UnsafeStreamerServer ¶
type UnsafeStreamerServer interface {
// contains filtered or unexported methods
}
UnsafeStreamerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StreamerServer will result in compilation errors.