Documentation ¶
Index ¶
- Variables
- func NewStreamerEndpoints() []*api.Endpoint
- func RegisterStreamerHandler(s server.Server, hdlr StreamerHandler, opts ...server.HandlerOption) error
- type Request
- type Response
- type StreamerHandler
- type StreamerService
- type Streamer_ServerStreamService
- type Streamer_ServerStreamStream
- type Streamer_StreamService
- type Streamer_StreamStream
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_stream_proto protoreflect.FileDescriptor
Functions ¶
func NewStreamerEndpoints ¶
func RegisterStreamerHandler ¶
func RegisterStreamerHandler(s server.Server, hdlr StreamerHandler, opts ...server.HandlerOption) error
Types ¶
type Request ¶
type Request struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type StreamerHandler ¶
type StreamerHandler interface { Stream(context.Context, Streamer_StreamStream) error ServerStream(context.Context, *Request, Streamer_ServerStreamStream) error }
type StreamerService ¶
type StreamerService interface { Stream(ctx context.Context, opts ...client.CallOption) (Streamer_StreamService, error) ServerStream(ctx context.Context, in *Request, opts ...client.CallOption) (Streamer_ServerStreamService, error) }
func NewStreamerService ¶
func NewStreamerService(name string, c client.Client) StreamerService
type Streamer_StreamService ¶
Click to show internal directories.
Click to hide internal directories.