Documentation ¶
Overview ¶
Package greeter is a generated protocol buffer package.
It is generated from these files:
greeter/greeter.proto
It has these top-level messages:
GreetRequest GreetResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGreeterServiceServer ¶
func RegisterGreeterServiceServer(s *grpc.Server, srv GreeterServiceServer)
Types ¶
type GreetRequest ¶
type GreetRequest struct { Greeting string `protobuf:"bytes,1,opt,name=greeting" json:"greeting,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` }
func (*GreetRequest) Descriptor ¶
func (*GreetRequest) Descriptor() ([]byte, []int)
func (*GreetRequest) GetGreeting ¶
func (m *GreetRequest) GetGreeting() string
func (*GreetRequest) GetName ¶
func (m *GreetRequest) GetName() string
func (*GreetRequest) ProtoMessage ¶
func (*GreetRequest) ProtoMessage()
func (*GreetRequest) Reset ¶
func (m *GreetRequest) Reset()
func (*GreetRequest) String ¶
func (m *GreetRequest) String() string
type GreetResponse ¶
type GreetResponse struct {
Response string `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
func (*GreetResponse) Descriptor ¶
func (*GreetResponse) Descriptor() ([]byte, []int)
func (*GreetResponse) GetResponse ¶
func (m *GreetResponse) GetResponse() string
func (*GreetResponse) ProtoMessage ¶
func (*GreetResponse) ProtoMessage()
func (*GreetResponse) Reset ¶
func (m *GreetResponse) Reset()
func (*GreetResponse) String ¶
func (m *GreetResponse) String() string
type GreeterServiceClient ¶
type GreeterServiceClient interface {
Greet(ctx context.Context, in *GreetRequest, opts ...grpc.CallOption) (*GreetResponse, error)
}
func NewGreeterServiceClient ¶
func NewGreeterServiceClient(cc *grpc.ClientConn) GreeterServiceClient
type GreeterServiceServer ¶
type GreeterServiceServer interface {
Greet(context.Context, *GreetRequest) (*GreetResponse, error)
}
Click to show internal directories.
Click to hide internal directories.