Documentation
¶
Index ¶
- Variables
- func RegisterHelloServiceServer(s *grpc.Server, srv HelloServiceServer)
- func RegisterHolaServiceServer(s *grpc.Server, srv HolaServiceServer)
- type HelloReply
- type HelloRequest
- type HelloServiceClient
- type HelloServiceServer
- type HolaReply
- type HolaRequest
- type HolaServiceClient
- type HolaServiceServer
- type UnimplementedHelloServiceServer
- type UnimplementedHolaServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_helloworld_proto protoreflect.FileDescriptor
Functions ¶
func RegisterHelloServiceServer ¶
func RegisterHelloServiceServer(s *grpc.Server, srv HelloServiceServer)
func RegisterHolaServiceServer ¶
func RegisterHolaServiceServer(s *grpc.Server, srv HolaServiceServer)
Types ¶
type HelloReply ¶
type HelloReply struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
The response message containing the greetings
func (*HelloReply) Descriptor
deprecated
func (*HelloReply) Descriptor() ([]byte, []int)
Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.
func (*HelloReply) GetMessage ¶
func (x *HelloReply) GetMessage() string
func (*HelloReply) ProtoMessage ¶
func (*HelloReply) ProtoMessage()
func (*HelloReply) ProtoReflect ¶
func (x *HelloReply) ProtoReflect() protoreflect.Message
func (*HelloReply) Reset ¶
func (x *HelloReply) Reset()
func (*HelloReply) String ¶
func (x *HelloReply) String() string
type HelloRequest ¶
type HelloRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
The request message containing the user's name.
func (*HelloRequest) Descriptor
deprecated
func (*HelloRequest) Descriptor() ([]byte, []int)
Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
func (*HelloRequest) GetName ¶
func (x *HelloRequest) GetName() string
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) ProtoReflect ¶
func (x *HelloRequest) ProtoReflect() protoreflect.Message
func (*HelloRequest) Reset ¶
func (x *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (x *HelloRequest) String() string
type HelloServiceClient ¶
type HelloServiceClient interface {
// Sends a hello greeting
SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
}
HelloServiceClient is the client API for HelloService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHelloServiceClient ¶
func NewHelloServiceClient(cc grpc.ClientConnInterface) HelloServiceClient
type HelloServiceServer ¶
type HelloServiceServer interface {
// Sends a hello greeting
SayHello(context.Context, *HelloRequest) (*HelloReply, error)
}
HelloServiceServer is the server API for HelloService service.
type HolaReply ¶
type HolaReply struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
The response message containing the greetings
func (*HolaReply) Descriptor
deprecated
func (*HolaReply) GetMessage ¶
func (*HolaReply) ProtoMessage ¶
func (*HolaReply) ProtoMessage()
func (*HolaReply) ProtoReflect ¶
func (x *HolaReply) ProtoReflect() protoreflect.Message
type HolaRequest ¶
type HolaRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
The request message containing the user's name.
func (*HolaRequest) Descriptor
deprecated
func (*HolaRequest) Descriptor() ([]byte, []int)
Deprecated: Use HolaRequest.ProtoReflect.Descriptor instead.
func (*HolaRequest) GetName ¶
func (x *HolaRequest) GetName() string
func (*HolaRequest) ProtoMessage ¶
func (*HolaRequest) ProtoMessage()
func (*HolaRequest) ProtoReflect ¶
func (x *HolaRequest) ProtoReflect() protoreflect.Message
func (*HolaRequest) Reset ¶
func (x *HolaRequest) Reset()
func (*HolaRequest) String ¶
func (x *HolaRequest) String() string
type HolaServiceClient ¶
type HolaServiceClient interface {
// Sends a hola greeting
SayHola(ctx context.Context, in *HolaRequest, opts ...grpc.CallOption) (*HolaReply, error)
}
HolaServiceClient is the client API for HolaService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHolaServiceClient ¶
func NewHolaServiceClient(cc grpc.ClientConnInterface) HolaServiceClient
type HolaServiceServer ¶
type HolaServiceServer interface {
// Sends a hola greeting
SayHola(context.Context, *HolaRequest) (*HolaReply, error)
}
HolaServiceServer is the server API for HolaService service.
type UnimplementedHelloServiceServer ¶
type UnimplementedHelloServiceServer struct {
}
UnimplementedHelloServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedHelloServiceServer) SayHello ¶
func (*UnimplementedHelloServiceServer) SayHello(context.Context, *HelloRequest) (*HelloReply, error)
type UnimplementedHolaServiceServer ¶
type UnimplementedHolaServiceServer struct {
}
UnimplementedHolaServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedHolaServiceServer) SayHola ¶
func (*UnimplementedHolaServiceServer) SayHola(context.Context, *HolaRequest) (*HolaReply, error)