Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_api_grpc_protos_greeting_proto protoreflect.FileDescriptor
var Greeting_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protos.Greeting", HandlerType: (*GreetingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetGreetingList", Handler: _Greeting_GetGreetingList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/grpc/protos/greeting.proto", }
Greeting_ServiceDesc is the grpc.ServiceDesc for Greeting service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGreetingServer ¶
func RegisterGreetingServer(s grpc.ServiceRegistrar, srv GreetingServer)
Types ¶
type GetGreetingListParam ¶
type GetGreetingListParam struct {
// contains filtered or unexported fields
}
func (*GetGreetingListParam) Descriptor
deprecated
func (*GetGreetingListParam) Descriptor() ([]byte, []int)
Deprecated: Use GetGreetingListParam.ProtoReflect.Descriptor instead.
func (*GetGreetingListParam) ProtoMessage ¶
func (*GetGreetingListParam) ProtoMessage()
func (*GetGreetingListParam) ProtoReflect ¶
func (x *GetGreetingListParam) ProtoReflect() protoreflect.Message
func (*GetGreetingListParam) Reset ¶
func (x *GetGreetingListParam) Reset()
func (*GetGreetingListParam) String ¶
func (x *GetGreetingListParam) String() string
type GetGreetingListReply ¶
type GetGreetingListReply struct {
// contains filtered or unexported fields
}
func (*GetGreetingListReply) Descriptor
deprecated
func (*GetGreetingListReply) Descriptor() ([]byte, []int)
Deprecated: Use GetGreetingListReply.ProtoReflect.Descriptor instead.
func (*GetGreetingListReply) ProtoMessage ¶
func (*GetGreetingListReply) ProtoMessage()
func (*GetGreetingListReply) ProtoReflect ¶
func (x *GetGreetingListReply) ProtoReflect() protoreflect.Message
func (*GetGreetingListReply) Reset ¶
func (x *GetGreetingListReply) Reset()
func (*GetGreetingListReply) String ¶
func (x *GetGreetingListReply) String() string
type GreetingClient ¶
type GreetingClient interface {
GetGreetingList(ctx context.Context, in *GetGreetingListParam, opts ...grpc.CallOption) (*GetGreetingListReply, error)
}
GreetingClient is the client API for Greeting 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 NewGreetingClient ¶
func NewGreetingClient(cc grpc.ClientConnInterface) GreetingClient
type GreetingServer ¶
type GreetingServer interface {
GetGreetingList(context.Context, *GetGreetingListParam) (*GetGreetingListReply, error)
}
GreetingServer is the server API for Greeting service. All implementations should embed UnimplementedGreetingServer for forward compatibility
type UnimplementedGreetingServer ¶
type UnimplementedGreetingServer struct { }
UnimplementedGreetingServer should be embedded to have forward compatible implementations.
func (UnimplementedGreetingServer) GetGreetingList ¶ added in v1.0.1
func (UnimplementedGreetingServer) GetGreetingList(context.Context, *GetGreetingListParam) (*GetGreetingListReply, error)
type UnsafeGreetingServer ¶
type UnsafeGreetingServer interface {
// contains filtered or unexported methods
}
UnsafeGreetingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GreetingServer will result in compilation errors.