Documentation ¶
Overview ¶
Package stream is a generated protocol buffer package.
It is generated from these files:
github.com/micro/examples/stream/server/proto/stream.proto
It has these top-level messages:
Request Response
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterStreamerHandler ¶
func RegisterStreamerHandler(s server.Server, hdlr StreamerHandler, opts ...server.HandlerOption)
Types ¶
type Request ¶
type Request struct {
Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
}
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Response ¶
type Response struct {
Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
}
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
type StreamerClient ¶
type StreamerClient interface { Stream(ctx context.Context, opts ...client.CallOption) (Streamer_StreamClient, error) ServerStream(ctx context.Context, in *Request, opts ...client.CallOption) (Streamer_ServerStreamClient, error) }
func NewStreamerClient ¶
func NewStreamerClient(serviceName string, c client.Client) StreamerClient
type StreamerHandler ¶
type StreamerHandler interface { Stream(context.Context, Streamer_StreamStream) error ServerStream(context.Context, *Request, Streamer_ServerStreamStream) error }
type Streamer_StreamClient ¶
Click to show internal directories.
Click to hide internal directories.