Documentation ¶
Overview ¶
Package go_micro_srv_template is a generated protocol buffer package.
It is generated from these files:
proto/example/example.proto
It has these top-level messages:
Message Request Response StreamingRequest StreamingResponse Ping Pong
Package go_micro_srv_template is a generated protocol buffer package.
It is generated from these files:
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, opts ...server.HandlerOption)
- type ExampleHandler
- type ExampleService
- type Example_PingPongService
- type Example_PingPongStream
- type Example_StreamService
- 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, opts ...server.HandlerOption)
Types ¶
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 ExampleService ¶
type ExampleService interface { Call(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) Stream(ctx context.Context, in *StreamingRequest, opts ...client.CallOption) (Example_StreamService, error) PingPong(ctx context.Context, opts ...client.CallOption) (Example_PingPongService, error) }
func NewExampleService ¶
func NewExampleService(serviceName string, c client.Client) ExampleService
type Example_PingPongService ¶
type Example_PingPongStream ¶
type Example_StreamService ¶
type Example_StreamService 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) GetCount ¶
func (m *StreamingRequest) GetCount() int64
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) GetCount ¶
func (m *StreamingResponse) GetCount() int64
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.