Documentation
¶
Overview ¶
Package api is a generated protocol buffer package.
It is generated from these files:
github.com/ship-os/ship-micro/examples/api/rpc/proto/api.proto
It has these top-level messages:
CallRequest CallResponse EmptyRequest EmptyResponse
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 RegisterFooHandler ¶
func RegisterFooHandler(s server.Server, hdlr FooHandler, opts ...server.HandlerOption)
Types ¶
type ExampleHandler ¶
type ExampleService ¶
type ExampleService interface {
Call(ctx context.Context, in *CallRequest, opts ...client.CallOption) (*CallResponse, error)
}
func NewExampleService ¶
func NewExampleService(serviceName string, c client.Client) ExampleService
type FooHandler ¶
type FooService ¶
type FooService interface {
Bar(ctx context.Context, in *EmptyRequest, opts ...client.CallOption) (*EmptyResponse, error)
}
func NewFooService ¶
func NewFooService(serviceName string, c client.Client) FooService
Click to show internal directories.
Click to hide internal directories.