Documentation
¶
Overview ¶
Package api is a generated protocol buffer package.
It is generated from these files:
github.com/micro/examples/api/default/proto/api.proto
It has these top-level messages:
Package api is a generated protocol buffer package.
It is generated from these files:
github.com/micro/examples/api/default/proto/api.proto
It has these top-level messages:
Index ¶
- func RegisterExampleHandler(s server.Server, hdlr ExampleHandler, opts ...server.HandlerOption)
- func RegisterExampleServer(s *grpc.Server, srv ExampleServer)
- func RegisterFooHandler(s server.Server, hdlr FooHandler, opts ...server.HandlerOption)
- func RegisterFooServer(s *grpc.Server, srv FooServer)
- type ExampleClient
- type ExampleHandler
- type ExampleServer
- type ExampleService
- type FooClient
- type FooHandler
- type FooServer
- type FooService
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)
func RegisterFooHandler ¶
func RegisterFooHandler(s server.Server, hdlr FooHandler, opts ...server.HandlerOption)
func RegisterFooServer ¶
Types ¶
type ExampleClient ¶
type ExampleClient interface {
Call(ctx context.Context, in *go_api.Request, opts ...grpc.CallOption) (*go_api.Response, error)
}
func NewExampleClient ¶
func NewExampleClient(cc *grpc.ClientConn) ExampleClient
type ExampleHandler ¶
type ExampleServer ¶
type ExampleService ¶
type ExampleService interface {
Call(ctx context.Context, in *go_api.Request, opts ...client.CallOption) (*go_api.Response, error)
}
func NewExampleService ¶
func NewExampleService(serviceName string, c client.Client) ExampleService
type FooClient ¶
type FooClient interface {
Bar(ctx context.Context, in *go_api.Request, opts ...grpc.CallOption) (*go_api.Response, error)
}
func NewFooClient ¶
func NewFooClient(cc *grpc.ClientConn) FooClient
type FooHandler ¶
type FooService ¶
type FooService interface {
Bar(ctx context.Context, in *go_api.Request, opts ...client.CallOption) (*go_api.Response, error)
}
func NewFooService ¶
func NewFooService(serviceName string, c client.Client) FooService
Click to show internal directories.
Click to hide internal directories.