Documentation ¶
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) Greeting ¶
func (h *Greeter) Greeting(ctx context.Context, in *GreetingRequest, out *GreetingResponse) error
type GreeterClient ¶
type GreeterClient interface {
Greeting(ctx context.Context, in *GreetingRequest, opts ...client.CallOption) (*GreetingResponse, error)
}
func NewGreeterClient ¶
func NewGreeterClient(serviceName string, c client.Client) GreeterClient
type GreeterHandler ¶
type GreeterHandler interface {
Greeting(context.Context, *GreetingRequest, *GreetingResponse) error
}
type GreetingRequest ¶
type GreetingRequest struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*GreetingRequest) Descriptor ¶
func (*GreetingRequest) Descriptor() ([]byte, []int)
func (*GreetingRequest) GetName ¶
func (m *GreetingRequest) GetName() string
func (*GreetingRequest) ProtoMessage ¶
func (*GreetingRequest) ProtoMessage()
func (*GreetingRequest) Reset ¶
func (m *GreetingRequest) Reset()
func (*GreetingRequest) String ¶
func (m *GreetingRequest) String() string
type GreetingResponse ¶
type GreetingResponse struct {
Greeting string `protobuf:"bytes,2,opt,name=greeting" json:"greeting,omitempty"`
}
func (*GreetingResponse) Descriptor ¶
func (*GreetingResponse) Descriptor() ([]byte, []int)
func (*GreetingResponse) GetGreeting ¶
func (m *GreetingResponse) GetGreeting() string
func (*GreetingResponse) ProtoMessage ¶
func (*GreetingResponse) ProtoMessage()
func (*GreetingResponse) Reset ¶
func (m *GreetingResponse) Reset()
func (*GreetingResponse) String ¶
func (m *GreetingResponse) String() string
Click to show internal directories.
Click to hide internal directories.