v1

package
v0.0.0-...-07f6388 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Lobby_Hello_FullMethodName = "/api.v1.lobby.Lobby/Hello"
)
View Source
const OperationLobbyHello = "/api.v1.lobby.Lobby/Hello"

Variables

View Source
var File_api_proto_lobby_v1_lobby_proto protoreflect.FileDescriptor
View Source
var File_api_proto_lobby_v1_lobby_service_proto protoreflect.FileDescriptor
View Source
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
}

func (*LobbyHTTPClientImpl) Hello

type LobbyHTTPServer

type LobbyHTTPServer interface {
	Hello(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
}

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.

func (UnimplementedLobbyServer) Hello

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL