Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterLobbyHTTPServer(s *http.Server, srv LobbyHTTPServer)
- func RegisterLobbyServer(s grpc.ServiceRegistrar, srv LobbyServer)
- type LobbyClient
- type LobbyHTTPClient
- type LobbyHTTPClientImpl
- type LobbyHTTPServer
- type LobbyServer
- type UnimplementedLobbyServer
- type UnsafeLobbyServer
Constants ¶
const (
Lobby_Hello_FullMethodName = "/api.v1.lobby.Lobby/Hello"
)
const OperationLobbyHello = "/api.v1.lobby.Lobby/Hello"
Variables ¶
var File_api_proto_lobby_v1_lobby_proto protoreflect.FileDescriptor
var File_api_proto_lobby_v1_lobby_service_proto protoreflect.FileDescriptor
var Lobby_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.v1.lobby.Lobby", HandlerType: (*LobbyServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Hello", Handler: _Lobby_Hello_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/proto/lobby/v1/lobby_service.proto", }
Lobby_ServiceDesc is the grpc.ServiceDesc for Lobby service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLobbyHTTPServer ¶
func RegisterLobbyHTTPServer(s *http.Server, srv LobbyHTTPServer)
func RegisterLobbyServer ¶
func RegisterLobbyServer(s grpc.ServiceRegistrar, srv LobbyServer)
Types ¶
type LobbyClient ¶
type LobbyClient interface {
Hello(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
LobbyClient is the client API for Lobby 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 NewLobbyClient ¶
func NewLobbyClient(cc grpc.ClientConnInterface) LobbyClient
type LobbyHTTPClient ¶
type LobbyHTTPClient interface {
Hello(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
}
func NewLobbyHTTPClient ¶
func NewLobbyHTTPClient(client *http.Client) LobbyHTTPClient
type LobbyHTTPClientImpl ¶
type LobbyHTTPClientImpl struct {
// contains filtered or unexported fields
}
type LobbyHTTPServer ¶
type LobbyServer ¶
type LobbyServer interface { Hello(context.Context, *emptypb.Empty) (*emptypb.Empty, error) // contains filtered or unexported methods }
LobbyServer is the server API for Lobby service. All implementations must embed UnimplementedLobbyServer for forward compatibility.
type UnimplementedLobbyServer ¶
type UnimplementedLobbyServer struct{}
UnimplementedLobbyServer 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 UnsafeLobbyServer ¶
type UnsafeLobbyServer interface {
// contains filtered or unexported methods
}
UnsafeLobbyServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LobbyServer will result in compilation errors.