Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServerHTTPServer(s *http.Server, srv ServerHTTPServer)
- func RegisterServerServer(s grpc.ServiceRegistrar, srv ServerServer)
- type ServerClient
- type ServerHTTPClient
- type ServerHTTPClientImpl
- type ServerHTTPServer
- type ServerServer
- type UnimplementedServerServer
- type UnsafeServerServer
Constants ¶
const OperationServerHello = "/api.v1.server.Server/Hello"
const (
Server_Hello_FullMethodName = "/api.v1.server.Server/Hello"
)
Variables ¶
var File_api_proto_server_v1_server_proto protoreflect.FileDescriptor
var File_api_proto_server_v1_server_service_proto protoreflect.FileDescriptor
var Server_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.v1.server.Server", HandlerType: (*ServerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Hello", Handler: _Server_Hello_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/proto/server/v1/server_service.proto", }
Server_ServiceDesc is the grpc.ServiceDesc for Server service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServerHTTPServer ¶
func RegisterServerHTTPServer(s *http.Server, srv ServerHTTPServer)
func RegisterServerServer ¶
func RegisterServerServer(s grpc.ServiceRegistrar, srv ServerServer)
Types ¶
type ServerClient ¶
type ServerClient interface {
Hello(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
ServerClient is the client API for Server 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 NewServerClient ¶
func NewServerClient(cc grpc.ClientConnInterface) ServerClient
type ServerHTTPClient ¶
type ServerHTTPClient interface {
Hello(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
}
func NewServerHTTPClient ¶
func NewServerHTTPClient(client *http.Client) ServerHTTPClient
type ServerHTTPClientImpl ¶
type ServerHTTPClientImpl struct {
// contains filtered or unexported fields
}
type ServerHTTPServer ¶
type ServerServer ¶
type ServerServer interface { Hello(context.Context, *emptypb.Empty) (*emptypb.Empty, error) // contains filtered or unexported methods }
ServerServer is the server API for Server service. All implementations must embed UnimplementedServerServer for forward compatibility.
type UnimplementedServerServer ¶
type UnimplementedServerServer struct{}
UnimplementedServerServer 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.
type UnsafeServerServer ¶
type UnsafeServerServer interface {
// contains filtered or unexported methods
}
UnsafeServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServerServer will result in compilation errors.