Documentation ¶
Overview ¶
Package go_micro_api_template is a generated protocol buffer package.
It is generated from these files:
github.com/micro/micro/examples/template/api/proto/example/example.proto
It has these top-level messages:
Index ¶
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 Example ¶
type Example struct {
ExampleHandler
}
func (*Example) Call ¶
func (h *Example) Call(ctx context.Context, in *go_micro_api.Request, out *go_micro_api.Response) error
type ExampleClient ¶
type ExampleClient interface {
Call(ctx context.Context, in *go_micro_api.Request, opts ...client.CallOption) (*go_micro_api.Response, error)
}
func NewExampleClient ¶
func NewExampleClient(serviceName string, c client.Client) ExampleClient
type ExampleHandler ¶
type ExampleHandler interface {
Call(context.Context, *go_micro_api.Request, *go_micro_api.Response) error
}
Click to show internal directories.
Click to hide internal directories.