Documentation ¶
Overview ¶
Package stream is a generated protocol buffer package.
It is generated from these files:
github.com/xxdawn/micro/examples/stream/server/proto/stream.proto
It has these top-level messages:
Request Response
Package stream is a generated protocol buffer package.
It is generated from these files:
github.com/xxdawn/micro/examples/stream/server/proto/stream.proto
It has these top-level messages:
Request Response
Index ¶
- func RegisterStreamerHandler(s server.Server, hdlr StreamerHandler, opts ...server.HandlerOption)
- func RegisterStreamerServer(s *grpc.Server, srv StreamerServer)
- type Request
- type Response
- type StreamerClient
- type StreamerHandler
- type StreamerServer
- type StreamerService
- type Streamer_ServerStreamClient
- type Streamer_ServerStreamServer
- type Streamer_ServerStreamService
- type Streamer_ServerStreamStream
- type Streamer_StreamClient
- type Streamer_StreamServer
- type Streamer_StreamService
- type Streamer_StreamStream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterStreamerHandler ¶
func RegisterStreamerHandler(s server.Server, hdlr StreamerHandler, opts ...server.HandlerOption)
func RegisterStreamerServer ¶
func RegisterStreamerServer(s *grpc.Server, srv StreamerServer)
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 ...grpc.CallOption) (Streamer_StreamClient, error) ServerStream(ctx context.Context, in *Request, opts ...grpc.CallOption) (Streamer_ServerStreamClient, error) }
func NewStreamerClient ¶
func NewStreamerClient(cc *grpc.ClientConn) StreamerClient
type StreamerHandler ¶
type StreamerHandler interface { Stream(context.Context, Streamer_StreamStream) error ServerStream(context.Context, *Request, Streamer_ServerStreamStream) error }
type StreamerServer ¶
type StreamerServer interface { Stream(Streamer_StreamServer) error ServerStream(*Request, Streamer_ServerStreamServer) 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(serviceName string, c client.Client) StreamerService
type Streamer_ServerStreamClient ¶
type Streamer_ServerStreamClient interface { Recv() (*Response, error) grpc.ClientStream }
type Streamer_ServerStreamServer ¶
type Streamer_ServerStreamServer interface { Send(*Response) error grpc.ServerStream }
type Streamer_StreamClient ¶
type Streamer_StreamServer ¶
type Streamer_StreamService ¶
Click to show internal directories.
Click to hide internal directories.