Documentation ¶
Index ¶
Constants ¶
const (
GreatingService_Say_FullMethodName = "/greating.GreatingService/Say"
)
Variables ¶
var File_greating_proto protoreflect.FileDescriptor
var GreatingService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "greating.GreatingService", HandlerType: (*GreatingServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Say", Handler: _GreatingService_Say_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "greating.proto", }
GreatingService_ServiceDesc is the grpc.ServiceDesc for GreatingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGreatingServiceServer ¶
func RegisterGreatingServiceServer(s grpc.ServiceRegistrar, srv GreatingServiceServer)
Types ¶
type GreatingRequest ¶
type GreatingRequest struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*GreatingRequest) Descriptor
deprecated
func (*GreatingRequest) Descriptor() ([]byte, []int)
Deprecated: Use GreatingRequest.ProtoReflect.Descriptor instead.
func (*GreatingRequest) GetMsg ¶
func (x *GreatingRequest) GetMsg() string
func (*GreatingRequest) ProtoMessage ¶
func (*GreatingRequest) ProtoMessage()
func (*GreatingRequest) ProtoReflect ¶
func (x *GreatingRequest) ProtoReflect() protoreflect.Message
func (*GreatingRequest) Reset ¶
func (x *GreatingRequest) Reset()
func (*GreatingRequest) String ¶
func (x *GreatingRequest) String() string
type GreatingResponse ¶
type GreatingResponse struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*GreatingResponse) Descriptor
deprecated
func (*GreatingResponse) Descriptor() ([]byte, []int)
Deprecated: Use GreatingResponse.ProtoReflect.Descriptor instead.
func (*GreatingResponse) GetMsg ¶
func (x *GreatingResponse) GetMsg() string
func (*GreatingResponse) ProtoMessage ¶
func (*GreatingResponse) ProtoMessage()
func (*GreatingResponse) ProtoReflect ¶
func (x *GreatingResponse) ProtoReflect() protoreflect.Message
func (*GreatingResponse) Reset ¶
func (x *GreatingResponse) Reset()
func (*GreatingResponse) String ¶
func (x *GreatingResponse) String() string
type GreatingServiceClient ¶
type GreatingServiceClient interface {
Say(ctx context.Context, in *GreatingRequest, opts ...grpc.CallOption) (*GreatingResponse, error)
}
GreatingServiceClient is the client API for GreatingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewGreatingServiceClient ¶
func NewGreatingServiceClient(cc grpc.ClientConnInterface) GreatingServiceClient
type GreatingServiceServer ¶
type GreatingServiceServer interface { Say(context.Context, *GreatingRequest) (*GreatingResponse, error) // contains filtered or unexported methods }
GreatingServiceServer is the server API for GreatingService service. All implementations must embed UnimplementedGreatingServiceServer for forward compatibility.
type UnimplementedGreatingServiceServer ¶
type UnimplementedGreatingServiceServer struct{}
UnimplementedGreatingServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedGreatingServiceServer) Say ¶
func (UnimplementedGreatingServiceServer) Say(context.Context, *GreatingRequest) (*GreatingResponse, error)
type UnsafeGreatingServiceServer ¶
type UnsafeGreatingServiceServer interface {
// contains filtered or unexported methods
}
UnsafeGreatingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GreatingServiceServer will result in compilation errors.