Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_greet_greetpb_greet_proto protoreflect.FileDescriptor
Functions ¶
func RegisterGreetServiceServer ¶
func RegisterGreetServiceServer(s *grpc.Server, srv GreetServiceServer)
Types ¶
type GreetRequest ¶
type GreetRequest struct {
Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
// contains filtered or unexported fields
}
func (*GreetRequest) Descriptor
deprecated
func (*GreetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GreetRequest.ProtoReflect.Descriptor instead.
func (*GreetRequest) GetGreeting ¶
func (x *GreetRequest) GetGreeting() *Greeting
func (*GreetRequest) ProtoMessage ¶
func (*GreetRequest) ProtoMessage()
func (*GreetRequest) ProtoReflect ¶
func (x *GreetRequest) ProtoReflect() protoreflect.Message
func (*GreetRequest) Reset ¶
func (x *GreetRequest) Reset()
func (*GreetRequest) String ¶
func (x *GreetRequest) String() string
type GreetResponse ¶
type GreetResponse struct {
Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
// contains filtered or unexported fields
}
func (*GreetResponse) Descriptor
deprecated
func (*GreetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GreetResponse.ProtoReflect.Descriptor instead.
func (*GreetResponse) GetResult ¶
func (x *GreetResponse) GetResult() string
func (*GreetResponse) ProtoMessage ¶
func (*GreetResponse) ProtoMessage()
func (*GreetResponse) ProtoReflect ¶
func (x *GreetResponse) ProtoReflect() protoreflect.Message
func (*GreetResponse) Reset ¶
func (x *GreetResponse) Reset()
func (*GreetResponse) String ¶
func (x *GreetResponse) String() string
type GreetServiceClient ¶
type GreetServiceClient interface {
// Unary
Greet(ctx context.Context, in *GreetRequest, opts ...grpc.CallOption) (*GreetResponse, error)
}
GreetServiceClient is the client API for GreetService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGreetServiceClient ¶
func NewGreetServiceClient(cc grpc.ClientConnInterface) GreetServiceClient
type GreetServiceServer ¶
type GreetServiceServer interface {
// Unary
Greet(context.Context, *GreetRequest) (*GreetResponse, error)
}
GreetServiceServer is the server API for GreetService service.
type Greeting ¶
type Greeting struct {
FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
// contains filtered or unexported fields
}
func (*Greeting) Descriptor
deprecated
func (*Greeting) GetFirstName ¶
func (*Greeting) GetLastName ¶
func (*Greeting) ProtoMessage ¶
func (*Greeting) ProtoMessage()
func (*Greeting) ProtoReflect ¶
func (x *Greeting) ProtoReflect() protoreflect.Message
type UnimplementedGreetServiceServer ¶
type UnimplementedGreetServiceServer struct {
}
UnimplementedGreetServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedGreetServiceServer) Greet ¶
func (*UnimplementedGreetServiceServer) Greet(context.Context, *GreetRequest) (*GreetResponse, error)
Click to show internal directories.
Click to hide internal directories.