Documentation ¶
Index ¶
Constants ¶
const (
NameService_Name_FullMethodName = "/name.NameService/Name"
)
Variables ¶
var File_name_name_proto protoreflect.FileDescriptor
var NameService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "name.NameService", HandlerType: (*NameServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Name", Handler: _NameService_Name_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "name/name.proto", }
NameService_ServiceDesc is the grpc.ServiceDesc for NameService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNameServiceServer ¶
func RegisterNameServiceServer(s grpc.ServiceRegistrar, srv NameServiceServer)
Types ¶
type NameResponse ¶
type NameResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
NameResponse are what's returned by the gRPC service
func (*NameResponse) Descriptor
deprecated
func (*NameResponse) Descriptor() ([]byte, []int)
Deprecated: Use NameResponse.ProtoReflect.Descriptor instead.
func (*NameResponse) GetName ¶
func (x *NameResponse) GetName() string
func (*NameResponse) ProtoMessage ¶
func (*NameResponse) ProtoMessage()
func (*NameResponse) ProtoReflect ¶
func (x *NameResponse) ProtoReflect() protoreflect.Message
func (*NameResponse) Reset ¶
func (x *NameResponse) Reset()
func (*NameResponse) String ¶
func (x *NameResponse) String() string
type NameServiceClient ¶
type NameServiceClient interface {
Name(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*NameResponse, error)
}
NameServiceClient is the client API for NameService 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 NewNameServiceClient ¶
func NewNameServiceClient(cc grpc.ClientConnInterface) NameServiceClient
type NameServiceServer ¶
type NameServiceServer interface { Name(context.Context, *empty.Empty) (*NameResponse, error) // contains filtered or unexported methods }
NameServiceServer is the server API for NameService service. All implementations must embed UnimplementedNameServiceServer for forward compatibility
type UnimplementedNameServiceServer ¶
type UnimplementedNameServiceServer struct { }
UnimplementedNameServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedNameServiceServer) Name ¶
func (UnimplementedNameServiceServer) Name(context.Context, *empty.Empty) (*NameResponse, error)
type UnsafeNameServiceServer ¶
type UnsafeNameServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNameServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NameServiceServer will result in compilation errors.