grpc

package
v0.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HumanService_ReadHuman_FullMethodName = "/grpc.HumanService/ReadHuman"
)

Variables

View Source
var File_human_gen_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Human.ProtoReflect.Descriptor instead.

func (*Human) GetID

func (x *Human) GetID() string

func (*Human) GetName

func (x *Human) GetName() string

func (*Human) ProtoMessage

func (*Human) ProtoMessage()

func (*Human) ProtoReflect

func (x *Human) ProtoReflect() protoreflect.Message

func (*Human) Reset

func (x *Human) Reset()

func (*Human) String

func (x *Human) String() string

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.

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL