Documentation ¶
Overview ¶
Package go_micro_fnc_template is a generated protocol buffer package.
It is generated from these files:
github.com/micro/go-micro/examples/template/fnc/proto/example/example.proto
It has these top-level messages:
Message Request Response
Package go_micro_fnc_template is a generated protocol buffer package.
It is generated from these files:
github.com/micro/go-micro/examples/template/fnc/proto/example/example.proto
It has these top-level messages:
Message Request Response
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterExampleHandler ¶
func RegisterExampleHandler(s server.Server, hdlr ExampleHandler, opts ...server.HandlerOption)
func RegisterExampleServer ¶
func RegisterExampleServer(s *grpc.Server, srv ExampleServer)
Types ¶
type ExampleClient ¶
type ExampleClient interface {
Call(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
func NewExampleClient ¶
func NewExampleClient(cc *grpc.ClientConn) ExampleClient
type ExampleHandler ¶
type ExampleServer ¶
type ExampleService ¶
type ExampleService interface {
Call(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
}
func NewExampleService ¶
func NewExampleService(serviceName string, c client.Client) ExampleService
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 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()
Click to show internal directories.
Click to hide internal directories.