Documentation ¶
Overview ¶
Package greeter is a generated protocol buffer package.
It is generated from these files:
github.com/PacktPublishing/Advanced-Cloud-Native-Go/Communication/Go-Micro/proto/greeter.proto
It has these top-level messages:
HelloRequest HelloResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGreeterHandler ¶
func RegisterGreeterHandler(s server.Server, hdlr GreeterHandler, opts ...server.HandlerOption)
Types ¶
type Greeter ¶
type Greeter struct {
GreeterHandler
}
func (*Greeter) Hello ¶
func (h *Greeter) Hello(ctx context.Context, in *HelloRequest, out *HelloResponse) error
type GreeterClient ¶
type GreeterClient interface {
Hello(ctx context.Context, in *HelloRequest, opts ...client.CallOption) (*HelloResponse, error)
}
func NewGreeterClient ¶
func NewGreeterClient(serviceName string, c client.Client) GreeterClient
type GreeterHandler ¶
type GreeterHandler interface {
Hello(context.Context, *HelloRequest, *HelloResponse) error
}
type HelloRequest ¶
type HelloRequest struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*HelloRequest) Descriptor ¶
func (*HelloRequest) Descriptor() ([]byte, []int)
func (*HelloRequest) GetName ¶
func (m *HelloRequest) GetName() string
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) Reset ¶
func (m *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (m *HelloRequest) String() string
type HelloResponse ¶
type HelloResponse struct {
Greeting string `protobuf:"bytes,2,opt,name=greeting" json:"greeting,omitempty"`
}
func (*HelloResponse) Descriptor ¶
func (*HelloResponse) Descriptor() ([]byte, []int)
func (*HelloResponse) GetGreeting ¶
func (m *HelloResponse) GetGreeting() string
func (*HelloResponse) ProtoMessage ¶
func (*HelloResponse) ProtoMessage()
func (*HelloResponse) Reset ¶
func (m *HelloResponse) Reset()
func (*HelloResponse) String ¶
func (m *HelloResponse) String() string
Click to show internal directories.
Click to hide internal directories.