Documentation ¶
Overview ¶
Package go_micro_srv_example is a generated protocol buffer package.
It is generated from these files:
go-micro/examples/server/proto/example/example.proto
It has these top-level messages:
Message Request Response StreamingRequest StreamingResponse Ping Pong
Index ¶
- func RegisterExampleHandler(s server.Server, hdlr ExampleHandler)
- type Example
- type ExampleClient
- type ExampleHandler
- type Example_PingPongClient
- type Example_PingPongStream
- type Example_StreamClient
- type Example_StreamStream
- type Message
- type Ping
- type Pong
- type Request
- type Response
- type StreamingRequest
- type StreamingResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterExampleHandler ¶
func RegisterExampleHandler(s server.Server, hdlr ExampleHandler)
Types ¶
type Example ¶
type Example struct {
ExampleHandler
}
type ExampleClient ¶
type ExampleClient interface { Call(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) Stream(ctx context.Context, in *StreamingRequest, opts ...client.CallOption) (Example_StreamClient, error) PingPong(ctx context.Context, opts ...client.CallOption) (Example_PingPongClient, error) }
func NewExampleClient ¶
func NewExampleClient(serviceName string, c client.Client) ExampleClient
type ExampleHandler ¶
type ExampleHandler interface { Call(context.Context, *Request, *Response) error Stream(context.Context, *StreamingRequest, Example_StreamStream) error PingPong(context.Context, Example_PingPongStream) error }
type Example_PingPongClient ¶
type Example_PingPongStream ¶
type Example_StreamClient ¶
type Example_StreamClient interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Recv() (*StreamingResponse, error) }
type Example_StreamStream ¶
type Example_StreamStream interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*StreamingResponse) error }
type Message ¶
type Message struct {
Say string `protobuf:"bytes,1,opt,name=say" json:"say,omitempty"`
}
func (*Message) Descriptor ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
type Ping ¶
type Ping struct {
Stroke int64 `protobuf:"varint,1,opt,name=stroke" json:"stroke,omitempty"`
}
func (*Ping) Descriptor ¶
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
type Pong ¶
type Pong struct {
Stroke int64 `protobuf:"varint,1,opt,name=stroke" json:"stroke,omitempty"`
}
func (*Pong) Descriptor ¶
func (*Pong) ProtoMessage ¶
func (*Pong) ProtoMessage()
type Request ¶
type Request struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Response ¶
type Response struct {
Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
type StreamingRequest ¶
type StreamingRequest struct {
Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
}
func (*StreamingRequest) Descriptor ¶
func (*StreamingRequest) Descriptor() ([]byte, []int)
func (*StreamingRequest) ProtoMessage ¶
func (*StreamingRequest) ProtoMessage()
func (*StreamingRequest) Reset ¶
func (m *StreamingRequest) Reset()
func (*StreamingRequest) String ¶
func (m *StreamingRequest) String() string
type StreamingResponse ¶
type StreamingResponse struct {
Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
}
func (*StreamingResponse) Descriptor ¶
func (*StreamingResponse) Descriptor() ([]byte, []int)
func (*StreamingResponse) ProtoMessage ¶
func (*StreamingResponse) ProtoMessage()
func (*StreamingResponse) Reset ¶
func (m *StreamingResponse) Reset()
func (*StreamingResponse) String ¶
func (m *StreamingResponse) String() string
Click to show internal directories.
Click to hide internal directories.