Documentation ¶
Overview ¶
Package go_micro_srv_greeter is a generated protocol buffer package.
It is generated from these files:
github.com/micro/go-grpc/examples/greeter/server/proto/hello/hello.proto
It has these top-level messages:
Request Response
Package go_micro_srv_greeter is a generated protocol buffer package.
It is generated from these files:
github.com/micro/go-grpc/examples/greeter/server/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 RegisterSayHandler ¶
func RegisterSayHandler(s server.Server, hdlr SayHandler, opts ...server.HandlerOption)
func RegisterSayServer ¶ added in v0.2.0
Types ¶
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()
type SayClient ¶
type SayClient interface {
Hello(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
func NewSayClient ¶
func NewSayClient(cc *grpc.ClientConn) SayClient
type SayService ¶ added in v0.2.0
type SayService interface {
Hello(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
}
func NewSayService ¶ added in v0.4.0
func NewSayService(serviceName string, c client.Client) SayService
Click to show internal directories.
Click to hide internal directories.