Documentation ¶
Index ¶
Constants ¶
const (
Getter_GetName_FullMethodName = "/pb.test.v1.Getter/GetName"
)
Variables ¶
var File_getter_proto protoreflect.FileDescriptor
var Getter_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.test.v1.Getter", HandlerType: (*GetterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetName", Handler: _Getter_GetName_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "getter.proto", }
Getter_ServiceDesc is the grpc.ServiceDesc for Getter service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGetterServer ¶
func RegisterGetterServer(s grpc.ServiceRegistrar, srv GetterServer)
Types ¶
type GetName ¶
type GetName struct {
// contains filtered or unexported fields
}
func (*GetName) Descriptor
deprecated
func (*GetName) ProtoMessage ¶
func (*GetName) ProtoMessage()
func (*GetName) ProtoReflect ¶
func (x *GetName) ProtoReflect() protoreflect.Message
type GetName_Request ¶
type GetName_Request struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` // contains filtered or unexported fields }
func (*GetName_Request) Descriptor
deprecated
func (*GetName_Request) Descriptor() ([]byte, []int)
Deprecated: Use GetName_Request.ProtoReflect.Descriptor instead.
func (*GetName_Request) GetName ¶
func (x *GetName_Request) GetName() string
func (*GetName_Request) ProtoMessage ¶
func (*GetName_Request) ProtoMessage()
func (*GetName_Request) ProtoReflect ¶
func (x *GetName_Request) ProtoReflect() protoreflect.Message
func (*GetName_Request) Reset ¶
func (x *GetName_Request) Reset()
func (*GetName_Request) String ¶
func (x *GetName_Request) String() string
type GetName_Response ¶
type GetName_Response struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` // contains filtered or unexported fields }
func (*GetName_Response) Descriptor
deprecated
func (*GetName_Response) Descriptor() ([]byte, []int)
Deprecated: Use GetName_Response.ProtoReflect.Descriptor instead.
func (*GetName_Response) GetName ¶
func (x *GetName_Response) GetName() string
func (*GetName_Response) ProtoMessage ¶
func (*GetName_Response) ProtoMessage()
func (*GetName_Response) ProtoReflect ¶
func (x *GetName_Response) ProtoReflect() protoreflect.Message
func (*GetName_Response) Reset ¶
func (x *GetName_Response) Reset()
func (*GetName_Response) String ¶
func (x *GetName_Response) String() string
type GetterClient ¶
type GetterClient interface {
GetName(ctx context.Context, in *GetName_Request, opts ...grpc.CallOption) (*GetName_Response, error)
}
GetterClient is the client API for Getter 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 NewGetterClient ¶
func NewGetterClient(cc grpc.ClientConnInterface) GetterClient
type GetterServer ¶
type GetterServer interface { GetName(context.Context, *GetName_Request) (*GetName_Response, error) // contains filtered or unexported methods }
GetterServer is the server API for Getter service. All implementations must embed UnimplementedGetterServer for forward compatibility.
type UnimplementedGetterServer ¶
type UnimplementedGetterServer struct{}
UnimplementedGetterServer 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 (UnimplementedGetterServer) GetName ¶
func (UnimplementedGetterServer) GetName(context.Context, *GetName_Request) (*GetName_Response, error)
type UnsafeGetterServer ¶
type UnsafeGetterServer interface {
// contains filtered or unexported methods
}
UnsafeGetterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GetterServer will result in compilation errors.