Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterHumanServiceServer(s grpc.ServiceRegistrar, srv HumanServiceServer)
- type Human
- type HumanServiceClient
- type HumanServiceServer
- type ReadHumanRequest
- type ReadManyHumanRequest
- func (*ReadManyHumanRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadManyHumanRequest) GetID() string
- func (*ReadManyHumanRequest) ProtoMessage()
- func (x *ReadManyHumanRequest) ProtoReflect() protoreflect.Message
- func (x *ReadManyHumanRequest) Reset()
- func (x *ReadManyHumanRequest) String() string
- type ReadManyHumanResponse
- func (*ReadManyHumanResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadManyHumanResponse) GetItems() *Human
- func (*ReadManyHumanResponse) ProtoMessage()
- func (x *ReadManyHumanResponse) ProtoReflect() protoreflect.Message
- func (x *ReadManyHumanResponse) Reset()
- func (x *ReadManyHumanResponse) String() string
- type UnimplementedHumanServiceServer
- type UnsafeHumanServiceServer
Constants ¶
const (
HumanService_ReadHuman_FullMethodName = "/grpc.HumanService/ReadHuman"
)
Variables ¶
var File_human_gen_proto protoreflect.FileDescriptor
var HumanService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.HumanService", HandlerType: (*HumanServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ReadHuman", Handler: _HumanService_ReadHuman_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "human_gen.proto", }
HumanService_ServiceDesc is the grpc.ServiceDesc for HumanService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHumanServiceServer ¶
func RegisterHumanServiceServer(s grpc.ServiceRegistrar, srv HumanServiceServer)
Types ¶
type Human ¶
type Human struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` // contains filtered or unexported fields }
func (*Human) Descriptor
deprecated
func (*Human) ProtoMessage ¶
func (*Human) ProtoMessage()
func (*Human) ProtoReflect ¶
func (x *Human) ProtoReflect() protoreflect.Message
type HumanServiceClient ¶
type HumanServiceClient interface {
ReadHuman(ctx context.Context, in *ReadHumanRequest, opts ...grpc.CallOption) (*Human, error)
}
HumanServiceClient is the client API for HumanService 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 NewHumanServiceClient ¶
func NewHumanServiceClient(cc grpc.ClientConnInterface) HumanServiceClient
type HumanServiceServer ¶
type HumanServiceServer interface { ReadHuman(context.Context, *ReadHumanRequest) (*Human, error) // contains filtered or unexported methods }
HumanServiceServer is the server API for HumanService service. All implementations must embed UnimplementedHumanServiceServer for forward compatibility
type ReadHumanRequest ¶
type ReadHumanRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*ReadHumanRequest) Descriptor
deprecated
func (*ReadHumanRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadHumanRequest.ProtoReflect.Descriptor instead.
func (*ReadHumanRequest) GetID ¶
func (x *ReadHumanRequest) GetID() string
func (*ReadHumanRequest) ProtoMessage ¶
func (*ReadHumanRequest) ProtoMessage()
func (*ReadHumanRequest) ProtoReflect ¶
func (x *ReadHumanRequest) ProtoReflect() protoreflect.Message
func (*ReadHumanRequest) Reset ¶
func (x *ReadHumanRequest) Reset()
func (*ReadHumanRequest) String ¶
func (x *ReadHumanRequest) String() string
type ReadManyHumanRequest ¶
type ReadManyHumanRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*ReadManyHumanRequest) Descriptor
deprecated
func (*ReadManyHumanRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadManyHumanRequest.ProtoReflect.Descriptor instead.
func (*ReadManyHumanRequest) GetID ¶
func (x *ReadManyHumanRequest) GetID() string
func (*ReadManyHumanRequest) ProtoMessage ¶
func (*ReadManyHumanRequest) ProtoMessage()
func (*ReadManyHumanRequest) ProtoReflect ¶
func (x *ReadManyHumanRequest) ProtoReflect() protoreflect.Message
func (*ReadManyHumanRequest) Reset ¶
func (x *ReadManyHumanRequest) Reset()
func (*ReadManyHumanRequest) String ¶
func (x *ReadManyHumanRequest) String() string
type ReadManyHumanResponse ¶
type ReadManyHumanResponse struct { Items *Human `protobuf:"bytes,1,opt,name=Items,proto3" json:"Items,omitempty"` // contains filtered or unexported fields }
func (*ReadManyHumanResponse) Descriptor
deprecated
func (*ReadManyHumanResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadManyHumanResponse.ProtoReflect.Descriptor instead.
func (*ReadManyHumanResponse) GetItems ¶
func (x *ReadManyHumanResponse) GetItems() *Human
func (*ReadManyHumanResponse) ProtoMessage ¶
func (*ReadManyHumanResponse) ProtoMessage()
func (*ReadManyHumanResponse) ProtoReflect ¶
func (x *ReadManyHumanResponse) ProtoReflect() protoreflect.Message
func (*ReadManyHumanResponse) Reset ¶
func (x *ReadManyHumanResponse) Reset()
func (*ReadManyHumanResponse) String ¶
func (x *ReadManyHumanResponse) String() string
type UnimplementedHumanServiceServer ¶
type UnimplementedHumanServiceServer struct { }
UnimplementedHumanServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedHumanServiceServer) ReadHuman ¶
func (UnimplementedHumanServiceServer) ReadHuman(context.Context, *ReadHumanRequest) (*Human, error)
type UnsafeHumanServiceServer ¶
type UnsafeHumanServiceServer interface {
// contains filtered or unexported methods
}
UnsafeHumanServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HumanServiceServer will result in compilation errors.