Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_loadbalancing_internal_pkg_proto_greet_proto protoreflect.FileDescriptor
var GreetService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.GreetService", HandlerType: (*GreetServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Greet", Handler: _GreetService_Greet_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "loadbalancing/internal/pkg/proto/greet.proto", }
GreetService_ServiceDesc is the grpc.ServiceDesc for GreetService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGreetServiceServer ¶
func RegisterGreetServiceServer(s grpc.ServiceRegistrar, srv GreetServiceServer)
Types ¶
type GreetServiceClient ¶
type GreetServiceClient interface {
// Unary
Greet(ctx context.Context, in *GreetingRequest, opts ...grpc.CallOption) (*GreetingResponse, error)
}
GreetServiceClient is the client API for GreetService 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 NewGreetServiceClient ¶
func NewGreetServiceClient(cc grpc.ClientConnInterface) GreetServiceClient
type GreetServiceServer ¶
type GreetServiceServer interface {
// Unary
Greet(context.Context, *GreetingRequest) (*GreetingResponse, error)
// contains filtered or unexported methods
}
GreetServiceServer is the server API for GreetService service. All implementations must embed UnimplementedGreetServiceServer for forward compatibility
type Greeting ¶
type Greeting struct {
FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
// contains filtered or unexported fields
}
func (*Greeting) Descriptor
deprecated
func (*Greeting) GetFirstName ¶
func (*Greeting) GetLastName ¶
func (*Greeting) ProtoMessage ¶
func (*Greeting) ProtoMessage()
func (*Greeting) ProtoReflect ¶
func (x *Greeting) ProtoReflect() protoreflect.Message
type GreetingRequest ¶
type GreetingRequest struct {
Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
// contains filtered or unexported fields
}
func (*GreetingRequest) Descriptor
deprecated
func (*GreetingRequest) Descriptor() ([]byte, []int)
Deprecated: Use GreetingRequest.ProtoReflect.Descriptor instead.
func (*GreetingRequest) GetGreeting ¶
func (x *GreetingRequest) GetGreeting() *Greeting
func (*GreetingRequest) ProtoMessage ¶
func (*GreetingRequest) ProtoMessage()
func (*GreetingRequest) ProtoReflect ¶
func (x *GreetingRequest) ProtoReflect() protoreflect.Message
func (*GreetingRequest) Reset ¶
func (x *GreetingRequest) Reset()
func (*GreetingRequest) String ¶
func (x *GreetingRequest) String() string
type GreetingResponse ¶
type GreetingResponse struct {
Result string `protobuf:"bytes,1,opt,name=Result,proto3" json:"Result,omitempty"`
// contains filtered or unexported fields
}
func (*GreetingResponse) Descriptor
deprecated
func (*GreetingResponse) Descriptor() ([]byte, []int)
Deprecated: Use GreetingResponse.ProtoReflect.Descriptor instead.
func (*GreetingResponse) GetResult ¶
func (x *GreetingResponse) GetResult() string
func (*GreetingResponse) ProtoMessage ¶
func (*GreetingResponse) ProtoMessage()
func (*GreetingResponse) ProtoReflect ¶
func (x *GreetingResponse) ProtoReflect() protoreflect.Message
func (*GreetingResponse) Reset ¶
func (x *GreetingResponse) Reset()
func (*GreetingResponse) String ¶
func (x *GreetingResponse) String() string
type UnimplementedGreetServiceServer ¶
type UnimplementedGreetServiceServer struct {
}
UnimplementedGreetServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedGreetServiceServer) Greet ¶
func (UnimplementedGreetServiceServer) Greet(context.Context, *GreetingRequest) (*GreetingResponse, error)
type UnsafeGreetServiceServer ¶
type UnsafeGreetServiceServer interface {
// contains filtered or unexported methods
}
UnsafeGreetServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GreetServiceServer will result in compilation errors.