Documentation ¶
Index ¶
Constants ¶
const (
HelloService_Greet_FullMethodName = "/hello.v2.HelloService/Greet"
)
Variables ¶
var File_hello_v2_hello_proto protoreflect.FileDescriptor
var HelloService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hello.v2.HelloService", HandlerType: (*HelloServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Greet", Handler: _HelloService_Greet_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "hello/v2/hello.proto", }
HelloService_ServiceDesc is the grpc.ServiceDesc for HelloService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHelloServiceServer ¶
func RegisterHelloServiceServer(s grpc.ServiceRegistrar, srv HelloServiceServer)
Types ¶
type HelloServiceClient ¶
type HelloServiceClient interface { // Unary Greet(ctx context.Context, in *v1.GreetRequest, opts ...grpc.CallOption) (*v1.GreetResponse, error) }
HelloServiceClient is the client API for HelloService 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 NewHelloServiceClient ¶
func NewHelloServiceClient(cc grpc.ClientConnInterface) HelloServiceClient
type HelloServiceServer ¶
type HelloServiceServer interface { // Unary Greet(context.Context, *v1.GreetRequest) (*v1.GreetResponse, error) // contains filtered or unexported methods }
HelloServiceServer is the server API for HelloService service. All implementations must embed UnimplementedHelloServiceServer for forward compatibility.
type UnimplementedHelloServiceServer ¶
type UnimplementedHelloServiceServer struct{}
UnimplementedHelloServiceServer 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 (UnimplementedHelloServiceServer) Greet ¶
func (UnimplementedHelloServiceServer) Greet(context.Context, *v1.GreetRequest) (*v1.GreetResponse, error)
type UnsafeHelloServiceServer ¶
type UnsafeHelloServiceServer interface {
// contains filtered or unexported methods
}
UnsafeHelloServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HelloServiceServer will result in compilation errors.