Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterExampleHandler ¶
func RegisterExampleHandler(s server.Server, hdlr ExampleHandler, opts ...server.HandlerOption) error
func RegisterFooHandler ¶
func RegisterFooHandler(s server.Server, hdlr FooHandler, opts ...server.HandlerOption) error
Types ¶
type ExampleHandler ¶
type ExampleService ¶
type ExampleService interface {
Call(ctx context.Context, in *proto1.Request, opts ...client.CallOption) (*proto1.Response, error)
}
func NewExampleService ¶
func NewExampleService(name string, c client.Client) ExampleService
type FooHandler ¶
type FooService ¶
type FooService interface {
Bar(ctx context.Context, in *proto1.Request, opts ...client.CallOption) (*proto1.Response, error)
}
func NewFooService ¶
func NewFooService(name string, c client.Client) FooService
Click to show internal directories.
Click to hide internal directories.