Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_hello_proto protoreflect.FileDescriptor
var Hello_ServiceDesc = grpc.ServiceDesc{ ServiceName: "internal.rpc.proto.Hello", HandlerType: (*HelloServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Hello", Handler: _Hello_Hello_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "hello.proto", }
Hello_ServiceDesc is the grpc.ServiceDesc for Hello service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHelloServer ¶
func RegisterHelloServer(s grpc.ServiceRegistrar, srv HelloServer)
Types ¶
type EHLOMessage ¶
type EHLOMessage struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Token string `protobuf:"bytes,2,opt,name=Token,proto3" json:"Token,omitempty"` // contains filtered or unexported fields }
func (*EHLOMessage) Descriptor
deprecated
func (*EHLOMessage) Descriptor() ([]byte, []int)
Deprecated: Use EHLOMessage.ProtoReflect.Descriptor instead.
func (*EHLOMessage) GetName ¶
func (x *EHLOMessage) GetName() string
func (*EHLOMessage) GetToken ¶
func (x *EHLOMessage) GetToken() string
func (*EHLOMessage) ProtoMessage ¶
func (*EHLOMessage) ProtoMessage()
func (*EHLOMessage) ProtoReflect ¶
func (x *EHLOMessage) ProtoReflect() protoreflect.Message
func (*EHLOMessage) Reset ¶
func (x *EHLOMessage) Reset()
func (*EHLOMessage) String ¶
func (x *EHLOMessage) String() string
type HELOMessage ¶
type HELOMessage struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` // contains filtered or unexported fields }
func (*HELOMessage) Descriptor
deprecated
func (*HELOMessage) Descriptor() ([]byte, []int)
Deprecated: Use HELOMessage.ProtoReflect.Descriptor instead.
func (*HELOMessage) GetName ¶
func (x *HELOMessage) GetName() string
func (*HELOMessage) ProtoMessage ¶
func (*HELOMessage) ProtoMessage()
func (*HELOMessage) ProtoReflect ¶
func (x *HELOMessage) ProtoReflect() protoreflect.Message
func (*HELOMessage) Reset ¶
func (x *HELOMessage) Reset()
func (*HELOMessage) String ¶
func (x *HELOMessage) String() string
type HelloClient ¶
type HelloClient interface {
Hello(ctx context.Context, in *HELOMessage, opts ...grpc.CallOption) (*EHLOMessage, error)
}
HelloClient is the client API for Hello 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 NewHelloClient ¶
func NewHelloClient(cc grpc.ClientConnInterface) HelloClient
type HelloServer ¶
type HelloServer interface { Hello(context.Context, *HELOMessage) (*EHLOMessage, error) // contains filtered or unexported methods }
HelloServer is the server API for Hello service. All implementations must embed UnimplementedHelloServer for forward compatibility
type UnimplementedHelloServer ¶
type UnimplementedHelloServer struct { }
UnimplementedHelloServer must be embedded to have forward compatible implementations.
func (UnimplementedHelloServer) Hello ¶
func (UnimplementedHelloServer) Hello(context.Context, *HELOMessage) (*EHLOMessage, error)
type UnsafeHelloServer ¶
type UnsafeHelloServer interface {
// contains filtered or unexported methods
}
UnsafeHelloServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HelloServer will result in compilation errors.