Documentation ¶
Overview ¶
Package go_micro_api_greeter is a generated protocol buffer package.
It is generated from these files:
github.com/micro/go-micro/examples/greeter/api/rpc/proto/hello/hello.proto
It has these top-level messages:
Request Response
Package go_micro_api_greeter is a generated protocol buffer package.
It is generated from these files:
github.com/micro/go-micro/examples/greeter/api/rpc/proto/hello/hello.proto
It has these top-level messages:
Request Response
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGreeterHandler ¶
func RegisterGreeterHandler(s server.Server, hdlr GreeterHandler, opts ...server.HandlerOption)
func RegisterGreeterServer ¶
func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
Types ¶
type GreeterClient ¶
type GreeterClient interface {
Hello(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
func NewGreeterClient ¶
func NewGreeterClient(cc *grpc.ClientConn) GreeterClient
type GreeterHandler ¶
type GreeterServer ¶
type GreeterService ¶
type GreeterService interface {
Hello(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
}
func NewGreeterService ¶
func NewGreeterService(serviceName string, c client.Client) GreeterService
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.