apigrpc

package
v0.0.0-...-ba7217e Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package apigrpc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	LayerG_AddFriends_FullMethodName                        = "/layerg.api.LayerG/AddFriends"
	LayerG_AddGroupUsers_FullMethodName                     = "/layerg.api.LayerG/AddGroupUsers"
	LayerG_SessionRefresh_FullMethodName                    = "/layerg.api.LayerG/SessionRefresh"
	LayerG_SessionLogout_FullMethodName                     = "/layerg.api.LayerG/SessionLogout"
	LayerG_AuthenticateApple_FullMethodName                 = "/layerg.api.LayerG/AuthenticateApple"
	LayerG_AuthenticateCustom_FullMethodName                = "/layerg.api.LayerG/AuthenticateCustom"
	LayerG_AuthenticateDevice_FullMethodName                = "/layerg.api.LayerG/AuthenticateDevice"
	LayerG_AuthenticateEmail_FullMethodName                 = "/layerg.api.LayerG/AuthenticateEmail"
	LayerG_AuthenticateFacebook_FullMethodName              = "/layerg.api.LayerG/AuthenticateFacebook"
	LayerG_AuthenticateFacebookInstantGame_FullMethodName   = "/layerg.api.LayerG/AuthenticateFacebookInstantGame"
	LayerG_AuthenticateGameCenter_FullMethodName            = "/layerg.api.LayerG/AuthenticateGameCenter"
	LayerG_AuthenticateGoogle_FullMethodName                = "/layerg.api.LayerG/AuthenticateGoogle"
	LayerG_AuthenticateTelegram_FullMethodName              = "/layerg.api.LayerG/AuthenticateTelegram"
	LayerG_AuthenticateUA_FullMethodName                    = "/layerg.api.LayerG/AuthenticateUA"
	LayerG_AuthenticateEvm_FullMethodName                   = "/layerg.api.LayerG/AuthenticateEvm"
	LayerG_AuthenticateSteam_FullMethodName                 = "/layerg.api.LayerG/AuthenticateSteam"
	LayerG_BanGroupUsers_FullMethodName                     = "/layerg.api.LayerG/BanGroupUsers"
	LayerG_BlockFriends_FullMethodName                      = "/layerg.api.LayerG/BlockFriends"
	LayerG_CreateGroup_FullMethodName                       = "/layerg.api.LayerG/CreateGroup"
	LayerG_DeleteAccount_FullMethodName                     = "/layerg.api.LayerG/DeleteAccount"
	LayerG_DeleteFriends_FullMethodName                     = "/layerg.api.LayerG/DeleteFriends"
	LayerG_DeleteGroup_FullMethodName                       = "/layerg.api.LayerG/DeleteGroup"
	LayerG_DeleteLeaderboardRecord_FullMethodName           = "/layerg.api.LayerG/DeleteLeaderboardRecord"
	LayerG_DeleteNotifications_FullMethodName               = "/layerg.api.LayerG/DeleteNotifications"
	LayerG_DeleteTournamentRecord_FullMethodName            = "/layerg.api.LayerG/DeleteTournamentRecord"
	LayerG_DeleteStorageObjects_FullMethodName              = "/layerg.api.LayerG/DeleteStorageObjects"
	LayerG_Event_FullMethodName                             = "/layerg.api.LayerG/Event"
	LayerG_GetAccount_FullMethodName                        = "/layerg.api.LayerG/GetAccount"
	LayerG_GetUsers_FullMethodName                          = "/layerg.api.LayerG/GetUsers"
	LayerG_GetSubscription_FullMethodName                   = "/layerg.api.LayerG/GetSubscription"
	LayerG_GetMatchmakerStats_FullMethodName                = "/layerg.api.LayerG/GetMatchmakerStats"
	LayerG_Healthcheck_FullMethodName                       = "/layerg.api.LayerG/Healthcheck"
	LayerG_ImportFacebookFriends_FullMethodName             = "/layerg.api.LayerG/ImportFacebookFriends"
	LayerG_ImportSteamFriends_FullMethodName                = "/layerg.api.LayerG/ImportSteamFriends"
	LayerG_JoinGroup_FullMethodName                         = "/layerg.api.LayerG/JoinGroup"
	LayerG_JoinTournament_FullMethodName                    = "/layerg.api.LayerG/JoinTournament"
	LayerG_KickGroupUsers_FullMethodName                    = "/layerg.api.LayerG/KickGroupUsers"
	LayerG_LeaveGroup_FullMethodName                        = "/layerg.api.LayerG/LeaveGroup"
	LayerG_LinkApple_FullMethodName                         = "/layerg.api.LayerG/LinkApple"
	LayerG_LinkEvm_FullMethodName                           = "/layerg.api.LayerG/LinkEvm"
	LayerG_LinkCustom_FullMethodName                        = "/layerg.api.LayerG/LinkCustom"
	LayerG_LinkDevice_FullMethodName                        = "/layerg.api.LayerG/LinkDevice"
	LayerG_LinkEmail_FullMethodName                         = "/layerg.api.LayerG/LinkEmail"
	LayerG_LinkFacebook_FullMethodName                      = "/layerg.api.LayerG/LinkFacebook"
	LayerG_LinkFacebookInstantGame_FullMethodName           = "/layerg.api.LayerG/LinkFacebookInstantGame"
	LayerG_LinkGameCenter_FullMethodName                    = "/layerg.api.LayerG/LinkGameCenter"
	LayerG_LinkGoogle_FullMethodName                        = "/layerg.api.LayerG/LinkGoogle"
	LayerG_LinkSteam_FullMethodName                         = "/layerg.api.LayerG/LinkSteam"
	LayerG_ListChannelMessages_FullMethodName               = "/layerg.api.LayerG/ListChannelMessages"
	LayerG_ListFriends_FullMethodName                       = "/layerg.api.LayerG/ListFriends"
	LayerG_ListFriendsOfFriends_FullMethodName              = "/layerg.api.LayerG/ListFriendsOfFriends"
	LayerG_ListGroups_FullMethodName                        = "/layerg.api.LayerG/ListGroups"
	LayerG_ListGroupUsers_FullMethodName                    = "/layerg.api.LayerG/ListGroupUsers"
	LayerG_ListLeaderboardRecords_FullMethodName            = "/layerg.api.LayerG/ListLeaderboardRecords"
	LayerG_ListLeaderboardRecordsAroundOwner_FullMethodName = "/layerg.api.LayerG/ListLeaderboardRecordsAroundOwner"
	LayerG_ListMatches_FullMethodName                       = "/layerg.api.LayerG/ListMatches"
	LayerG_ListNotifications_FullMethodName                 = "/layerg.api.LayerG/ListNotifications"
	LayerG_ListStorageObjects_FullMethodName                = "/layerg.api.LayerG/ListStorageObjects"
	LayerG_ListSubscriptions_FullMethodName                 = "/layerg.api.LayerG/ListSubscriptions"
	LayerG_ListTournaments_FullMethodName                   = "/layerg.api.LayerG/ListTournaments"
	LayerG_ListTournamentRecords_FullMethodName             = "/layerg.api.LayerG/ListTournamentRecords"
	LayerG_ListTournamentRecordsAroundOwner_FullMethodName  = "/layerg.api.LayerG/ListTournamentRecordsAroundOwner"
	LayerG_ListUserGroups_FullMethodName                    = "/layerg.api.LayerG/ListUserGroups"
	LayerG_PromoteGroupUsers_FullMethodName                 = "/layerg.api.LayerG/PromoteGroupUsers"
	LayerG_DemoteGroupUsers_FullMethodName                  = "/layerg.api.LayerG/DemoteGroupUsers"
	LayerG_ReadStorageObjects_FullMethodName                = "/layerg.api.LayerG/ReadStorageObjects"
	LayerG_RpcFunc_FullMethodName                           = "/layerg.api.LayerG/RpcFunc"
	LayerG_UnlinkApple_FullMethodName                       = "/layerg.api.LayerG/UnlinkApple"
	LayerG_UnlinkCustom_FullMethodName                      = "/layerg.api.LayerG/UnlinkCustom"
	LayerG_UnlinkDevice_FullMethodName                      = "/layerg.api.LayerG/UnlinkDevice"
	LayerG_UnlinkEmail_FullMethodName                       = "/layerg.api.LayerG/UnlinkEmail"
	LayerG_UnlinkFacebook_FullMethodName                    = "/layerg.api.LayerG/UnlinkFacebook"
	LayerG_UnlinkFacebookInstantGame_FullMethodName         = "/layerg.api.LayerG/UnlinkFacebookInstantGame"
	LayerG_UnlinkGameCenter_FullMethodName                  = "/layerg.api.LayerG/UnlinkGameCenter"
	LayerG_UnlinkGoogle_FullMethodName                      = "/layerg.api.LayerG/UnlinkGoogle"
	LayerG_UnlinkSteam_FullMethodName                       = "/layerg.api.LayerG/UnlinkSteam"
	LayerG_UpdateAccount_FullMethodName                     = "/layerg.api.LayerG/UpdateAccount"
	LayerG_UpdateGroup_FullMethodName                       = "/layerg.api.LayerG/UpdateGroup"
	LayerG_ValidatePurchaseApple_FullMethodName             = "/layerg.api.LayerG/ValidatePurchaseApple"
	LayerG_ValidateSubscriptionApple_FullMethodName         = "/layerg.api.LayerG/ValidateSubscriptionApple"
	LayerG_ValidatePurchaseGoogle_FullMethodName            = "/layerg.api.LayerG/ValidatePurchaseGoogle"
	LayerG_ValidateSubscriptionGoogle_FullMethodName        = "/layerg.api.LayerG/ValidateSubscriptionGoogle"
	LayerG_ValidatePurchaseHuawei_FullMethodName            = "/layerg.api.LayerG/ValidatePurchaseHuawei"
	LayerG_ValidatePurchaseFacebookInstant_FullMethodName   = "/layerg.api.LayerG/ValidatePurchaseFacebookInstant"
	LayerG_WriteLeaderboardRecord_FullMethodName            = "/layerg.api.LayerG/WriteLeaderboardRecord"
	LayerG_WriteStorageObjects_FullMethodName               = "/layerg.api.LayerG/WriteStorageObjects"
	LayerG_WriteTournamentRecord_FullMethodName             = "/layerg.api.LayerG/WriteTournamentRecord"
)

Variables

View Source
var File_apigrpc_proto protoreflect.FileDescriptor
View Source
var LayerG_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "layerg.api.LayerG",
	HandlerType: (*LayerGServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddFriends",
			Handler:    _LayerG_AddFriends_Handler,
		},
		{
			MethodName: "AddGroupUsers",
			Handler:    _LayerG_AddGroupUsers_Handler,
		},
		{
			MethodName: "SessionRefresh",
			Handler:    _LayerG_SessionRefresh_Handler,
		},
		{
			MethodName: "SessionLogout",
			Handler:    _LayerG_SessionLogout_Handler,
		},
		{
			MethodName: "AuthenticateApple",
			Handler:    _LayerG_AuthenticateApple_Handler,
		},
		{
			MethodName: "AuthenticateCustom",
			Handler:    _LayerG_AuthenticateCustom_Handler,
		},
		{
			MethodName: "AuthenticateDevice",
			Handler:    _LayerG_AuthenticateDevice_Handler,
		},
		{
			MethodName: "AuthenticateEmail",
			Handler:    _LayerG_AuthenticateEmail_Handler,
		},
		{
			MethodName: "AuthenticateFacebook",
			Handler:    _LayerG_AuthenticateFacebook_Handler,
		},
		{
			MethodName: "AuthenticateFacebookInstantGame",
			Handler:    _LayerG_AuthenticateFacebookInstantGame_Handler,
		},
		{
			MethodName: "AuthenticateGameCenter",
			Handler:    _LayerG_AuthenticateGameCenter_Handler,
		},
		{
			MethodName: "AuthenticateGoogle",
			Handler:    _LayerG_AuthenticateGoogle_Handler,
		},
		{
			MethodName: "AuthenticateTelegram",
			Handler:    _LayerG_AuthenticateTelegram_Handler,
		},
		{
			MethodName: "AuthenticateUA",
			Handler:    _LayerG_AuthenticateUA_Handler,
		},
		{
			MethodName: "AuthenticateEvm",
			Handler:    _LayerG_AuthenticateEvm_Handler,
		},
		{
			MethodName: "AuthenticateSteam",
			Handler:    _LayerG_AuthenticateSteam_Handler,
		},
		{
			MethodName: "BanGroupUsers",
			Handler:    _LayerG_BanGroupUsers_Handler,
		},
		{
			MethodName: "BlockFriends",
			Handler:    _LayerG_BlockFriends_Handler,
		},
		{
			MethodName: "CreateGroup",
			Handler:    _LayerG_CreateGroup_Handler,
		},
		{
			MethodName: "DeleteAccount",
			Handler:    _LayerG_DeleteAccount_Handler,
		},
		{
			MethodName: "DeleteFriends",
			Handler:    _LayerG_DeleteFriends_Handler,
		},
		{
			MethodName: "DeleteGroup",
			Handler:    _LayerG_DeleteGroup_Handler,
		},
		{
			MethodName: "DeleteLeaderboardRecord",
			Handler:    _LayerG_DeleteLeaderboardRecord_Handler,
		},
		{
			MethodName: "DeleteNotifications",
			Handler:    _LayerG_DeleteNotifications_Handler,
		},
		{
			MethodName: "DeleteTournamentRecord",
			Handler:    _LayerG_DeleteTournamentRecord_Handler,
		},
		{
			MethodName: "DeleteStorageObjects",
			Handler:    _LayerG_DeleteStorageObjects_Handler,
		},
		{
			MethodName: "Event",
			Handler:    _LayerG_Event_Handler,
		},
		{
			MethodName: "GetAccount",
			Handler:    _LayerG_GetAccount_Handler,
		},
		{
			MethodName: "GetUsers",
			Handler:    _LayerG_GetUsers_Handler,
		},
		{
			MethodName: "GetSubscription",
			Handler:    _LayerG_GetSubscription_Handler,
		},
		{
			MethodName: "GetMatchmakerStats",
			Handler:    _LayerG_GetMatchmakerStats_Handler,
		},
		{
			MethodName: "Healthcheck",
			Handler:    _LayerG_Healthcheck_Handler,
		},
		{
			MethodName: "ImportFacebookFriends",
			Handler:    _LayerG_ImportFacebookFriends_Handler,
		},
		{
			MethodName: "ImportSteamFriends",
			Handler:    _LayerG_ImportSteamFriends_Handler,
		},
		{
			MethodName: "JoinGroup",
			Handler:    _LayerG_JoinGroup_Handler,
		},
		{
			MethodName: "JoinTournament",
			Handler:    _LayerG_JoinTournament_Handler,
		},
		{
			MethodName: "KickGroupUsers",
			Handler:    _LayerG_KickGroupUsers_Handler,
		},
		{
			MethodName: "LeaveGroup",
			Handler:    _LayerG_LeaveGroup_Handler,
		},
		{
			MethodName: "LinkApple",
			Handler:    _LayerG_LinkApple_Handler,
		},
		{
			MethodName: "LinkEvm",
			Handler:    _LayerG_LinkEvm_Handler,
		},
		{
			MethodName: "LinkCustom",
			Handler:    _LayerG_LinkCustom_Handler,
		},
		{
			MethodName: "LinkDevice",
			Handler:    _LayerG_LinkDevice_Handler,
		},
		{
			MethodName: "LinkEmail",
			Handler:    _LayerG_LinkEmail_Handler,
		},
		{
			MethodName: "LinkFacebook",
			Handler:    _LayerG_LinkFacebook_Handler,
		},
		{
			MethodName: "LinkFacebookInstantGame",
			Handler:    _LayerG_LinkFacebookInstantGame_Handler,
		},
		{
			MethodName: "LinkGameCenter",
			Handler:    _LayerG_LinkGameCenter_Handler,
		},
		{
			MethodName: "LinkGoogle",
			Handler:    _LayerG_LinkGoogle_Handler,
		},
		{
			MethodName: "LinkSteam",
			Handler:    _LayerG_LinkSteam_Handler,
		},
		{
			MethodName: "ListChannelMessages",
			Handler:    _LayerG_ListChannelMessages_Handler,
		},
		{
			MethodName: "ListFriends",
			Handler:    _LayerG_ListFriends_Handler,
		},
		{
			MethodName: "ListFriendsOfFriends",
			Handler:    _LayerG_ListFriendsOfFriends_Handler,
		},
		{
			MethodName: "ListGroups",
			Handler:    _LayerG_ListGroups_Handler,
		},
		{
			MethodName: "ListGroupUsers",
			Handler:    _LayerG_ListGroupUsers_Handler,
		},
		{
			MethodName: "ListLeaderboardRecords",
			Handler:    _LayerG_ListLeaderboardRecords_Handler,
		},
		{
			MethodName: "ListLeaderboardRecordsAroundOwner",
			Handler:    _LayerG_ListLeaderboardRecordsAroundOwner_Handler,
		},
		{
			MethodName: "ListMatches",
			Handler:    _LayerG_ListMatches_Handler,
		},
		{
			MethodName: "ListNotifications",
			Handler:    _LayerG_ListNotifications_Handler,
		},
		{
			MethodName: "ListStorageObjects",
			Handler:    _LayerG_ListStorageObjects_Handler,
		},
		{
			MethodName: "ListSubscriptions",
			Handler:    _LayerG_ListSubscriptions_Handler,
		},
		{
			MethodName: "ListTournaments",
			Handler:    _LayerG_ListTournaments_Handler,
		},
		{
			MethodName: "ListTournamentRecords",
			Handler:    _LayerG_ListTournamentRecords_Handler,
		},
		{
			MethodName: "ListTournamentRecordsAroundOwner",
			Handler:    _LayerG_ListTournamentRecordsAroundOwner_Handler,
		},
		{
			MethodName: "ListUserGroups",
			Handler:    _LayerG_ListUserGroups_Handler,
		},
		{
			MethodName: "PromoteGroupUsers",
			Handler:    _LayerG_PromoteGroupUsers_Handler,
		},
		{
			MethodName: "DemoteGroupUsers",
			Handler:    _LayerG_DemoteGroupUsers_Handler,
		},
		{
			MethodName: "ReadStorageObjects",
			Handler:    _LayerG_ReadStorageObjects_Handler,
		},
		{
			MethodName: "RpcFunc",
			Handler:    _LayerG_RpcFunc_Handler,
		},
		{
			MethodName: "UnlinkApple",
			Handler:    _LayerG_UnlinkApple_Handler,
		},
		{
			MethodName: "UnlinkCustom",
			Handler:    _LayerG_UnlinkCustom_Handler,
		},
		{
			MethodName: "UnlinkDevice",
			Handler:    _LayerG_UnlinkDevice_Handler,
		},
		{
			MethodName: "UnlinkEmail",
			Handler:    _LayerG_UnlinkEmail_Handler,
		},
		{
			MethodName: "UnlinkFacebook",
			Handler:    _LayerG_UnlinkFacebook_Handler,
		},
		{
			MethodName: "UnlinkFacebookInstantGame",
			Handler:    _LayerG_UnlinkFacebookInstantGame_Handler,
		},
		{
			MethodName: "UnlinkGameCenter",
			Handler:    _LayerG_UnlinkGameCenter_Handler,
		},
		{
			MethodName: "UnlinkGoogle",
			Handler:    _LayerG_UnlinkGoogle_Handler,
		},
		{
			MethodName: "UnlinkSteam",
			Handler:    _LayerG_UnlinkSteam_Handler,
		},
		{
			MethodName: "UpdateAccount",
			Handler:    _LayerG_UpdateAccount_Handler,
		},
		{
			MethodName: "UpdateGroup",
			Handler:    _LayerG_UpdateGroup_Handler,
		},
		{
			MethodName: "ValidatePurchaseApple",
			Handler:    _LayerG_ValidatePurchaseApple_Handler,
		},
		{
			MethodName: "ValidateSubscriptionApple",
			Handler:    _LayerG_ValidateSubscriptionApple_Handler,
		},
		{
			MethodName: "ValidatePurchaseGoogle",
			Handler:    _LayerG_ValidatePurchaseGoogle_Handler,
		},
		{
			MethodName: "ValidateSubscriptionGoogle",
			Handler:    _LayerG_ValidateSubscriptionGoogle_Handler,
		},
		{
			MethodName: "ValidatePurchaseHuawei",
			Handler:    _LayerG_ValidatePurchaseHuawei_Handler,
		},
		{
			MethodName: "ValidatePurchaseFacebookInstant",
			Handler:    _LayerG_ValidatePurchaseFacebookInstant_Handler,
		},
		{
			MethodName: "WriteLeaderboardRecord",
			Handler:    _LayerG_WriteLeaderboardRecord_Handler,
		},
		{
			MethodName: "WriteStorageObjects",
			Handler:    _LayerG_WriteStorageObjects_Handler,
		},
		{
			MethodName: "WriteTournamentRecord",
			Handler:    _LayerG_WriteTournamentRecord_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "apigrpc.proto",
}

LayerG_ServiceDesc is the grpc.ServiceDesc for LayerG service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterLayerGHandler

func RegisterLayerGHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterLayerGHandler registers the http handlers for service LayerG to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterLayerGHandlerClient

func RegisterLayerGHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LayerGClient) error

RegisterLayerGHandlerClient registers the http handlers for service LayerG to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LayerGClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LayerGClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LayerGClient" to call the correct interceptors. This client ignores the HTTP middlewares.

func RegisterLayerGHandlerFromEndpoint

func RegisterLayerGHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterLayerGHandlerFromEndpoint is same as RegisterLayerGHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterLayerGHandlerServer

func RegisterLayerGHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LayerGServer) error

RegisterLayerGHandlerServer registers the http handlers for service LayerG to "mux". UnaryRPC :call LayerGServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLayerGHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterLayerGServer

func RegisterLayerGServer(s grpc.ServiceRegistrar, srv LayerGServer)

Types

type LayerGClient

type LayerGClient interface {
	// Add friends by ID or username to a user's account.
	AddFriends(ctx context.Context, in *api.AddFriendsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Add users to a group.
	AddGroupUsers(ctx context.Context, in *api.AddGroupUsersRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Refresh a user's session using a refresh token retrieved from a previous authentication request.
	SessionRefresh(ctx context.Context, in *api.SessionRefreshRequest, opts ...grpc.CallOption) (*api.Session, error)
	// Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user.
	SessionLogout(ctx context.Context, in *api.SessionLogoutRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Authenticate a user with an Apple ID against the server.
	AuthenticateApple(ctx context.Context, in *api.AuthenticateAppleRequest, opts ...grpc.CallOption) (*api.Session, error)
	// Authenticate a user with a custom id against the server.
	AuthenticateCustom(ctx context.Context, in *api.AuthenticateCustomRequest, opts ...grpc.CallOption) (*api.Session, error)
	// Authenticate a user with a device id against the server.
	AuthenticateDevice(ctx context.Context, in *api.AuthenticateDeviceRequest, opts ...grpc.CallOption) (*api.Session, error)
	// Authenticate a user with an email+password against the server.
	AuthenticateEmail(ctx context.Context, in *api.AuthenticateEmailRequest, opts ...grpc.CallOption) (*api.Session, error)
	// Authenticate a user with a Facebook OAuth token against the server.
	AuthenticateFacebook(ctx context.Context, in *api.AuthenticateFacebookRequest, opts ...grpc.CallOption) (*api.Session, error)
	// Authenticate a user with a Facebook Instant Game token against the server.
	AuthenticateFacebookInstantGame(ctx context.Context, in *api.AuthenticateFacebookInstantGameRequest, opts ...grpc.CallOption) (*api.Session, error)
	// Authenticate a user with Apple's GameCenter against the server.
	AuthenticateGameCenter(ctx context.Context, in *api.AuthenticateGameCenterRequest, opts ...grpc.CallOption) (*api.Session, error)
	// Authenticate a user with Google against the server.
	AuthenticateGoogle(ctx context.Context, in *api.AuthenticateGoogleRequest, opts ...grpc.CallOption) (*api.Session, error)
	// Authenticate a user with Google against the server.
	AuthenticateTelegram(ctx context.Context, in *api.AuthenticateTelegramRequest, opts ...grpc.CallOption) (*api.Session, error)
	AuthenticateUA(ctx context.Context, in *api.AuthenticateUA, opts ...grpc.CallOption) (*api.Session, error)
	// Authenticate a user with Evm against the server.
	AuthenticateEvm(ctx context.Context, in *api.AuthenticateEvmRequest, opts ...grpc.CallOption) (*api.Session, error)
	// Authenticate a user with Steam against the server.
	AuthenticateSteam(ctx context.Context, in *api.AuthenticateSteamRequest, opts ...grpc.CallOption) (*api.Session, error)
	// Ban a set of users from a group.
	BanGroupUsers(ctx context.Context, in *api.BanGroupUsersRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Block one or more users by ID or username.
	BlockFriends(ctx context.Context, in *api.BlockFriendsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Create a new group with the current user as the owner.
	CreateGroup(ctx context.Context, in *api.CreateGroupRequest, opts ...grpc.CallOption) (*api.Group, error)
	// Delete the current user's account.
	DeleteAccount(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Delete one or more users by ID or username.
	DeleteFriends(ctx context.Context, in *api.DeleteFriendsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Delete a group by ID.
	DeleteGroup(ctx context.Context, in *api.DeleteGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Delete a leaderboard record.
	DeleteLeaderboardRecord(ctx context.Context, in *api.DeleteLeaderboardRecordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Delete one or more notifications for the current user.
	DeleteNotifications(ctx context.Context, in *api.DeleteNotificationsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Delete a tournament record.
	DeleteTournamentRecord(ctx context.Context, in *api.DeleteTournamentRecordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Delete one or more objects by ID or username.
	DeleteStorageObjects(ctx context.Context, in *api.DeleteStorageObjectsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Submit an event for processing in the server's registered runtime custom events handler.
	Event(ctx context.Context, in *api.Event, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Fetch the current user's account.
	GetAccount(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*api.Account, error)
	// Fetch zero or more users by ID and/or username.
	GetUsers(ctx context.Context, in *api.GetUsersRequest, opts ...grpc.CallOption) (*api.Users, error)
	// Get subscription by product id.
	GetSubscription(ctx context.Context, in *api.GetSubscriptionRequest, opts ...grpc.CallOption) (*api.ValidatedSubscription, error)
	// Get matchmaker stats.
	GetMatchmakerStats(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*api.MatchmakerStats, error)
	// A healthcheck which load balancers can use to check the service.
	Healthcheck(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Import Facebook friends and add them to a user's account.
	ImportFacebookFriends(ctx context.Context, in *api.ImportFacebookFriendsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Import Steam friends and add them to a user's account.
	ImportSteamFriends(ctx context.Context, in *api.ImportSteamFriendsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Immediately join an open group, or request to join a closed one.
	JoinGroup(ctx context.Context, in *api.JoinGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Attempt to join an open and running tournament.
	JoinTournament(ctx context.Context, in *api.JoinTournamentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Kick a set of users from a group.
	KickGroupUsers(ctx context.Context, in *api.KickGroupUsersRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Leave a group the user is a member of.
	LeaveGroup(ctx context.Context, in *api.LeaveGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Add an Apple ID to the social profiles on the current user's account.
	LinkApple(ctx context.Context, in *api.AccountApple, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Add an EVM to the social profiles on the current user's account.
	LinkEvm(ctx context.Context, in *api.AccountEvm, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Add a custom ID to the social profiles on the current user's account.
	LinkCustom(ctx context.Context, in *api.AccountCustom, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Add a device ID to the social profiles on the current user's account.
	LinkDevice(ctx context.Context, in *api.AccountDevice, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Add an email+password to the social profiles on the current user's account.
	LinkEmail(ctx context.Context, in *api.AccountEmail, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Add Facebook to the social profiles on the current user's account.
	LinkFacebook(ctx context.Context, in *api.LinkFacebookRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Add Facebook Instant Game to the social profiles on the current user's account.
	LinkFacebookInstantGame(ctx context.Context, in *api.AccountFacebookInstantGame, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Add Apple's GameCenter to the social profiles on the current user's account.
	LinkGameCenter(ctx context.Context, in *api.AccountGameCenter, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Add Google to the social profiles on the current user's account.
	LinkGoogle(ctx context.Context, in *api.AccountGoogle, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Add Steam to the social profiles on the current user's account.
	LinkSteam(ctx context.Context, in *api.LinkSteamRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// List a channel's message history.
	ListChannelMessages(ctx context.Context, in *api.ListChannelMessagesRequest, opts ...grpc.CallOption) (*api.ChannelMessageList, error)
	// List all friends for the current user.
	ListFriends(ctx context.Context, in *api.ListFriendsRequest, opts ...grpc.CallOption) (*api.FriendList, error)
	// List friends of friends for the current user.
	ListFriendsOfFriends(ctx context.Context, in *api.ListFriendsOfFriendsRequest, opts ...grpc.CallOption) (*api.FriendsOfFriendsList, error)
	// List groups based on given filters.
	ListGroups(ctx context.Context, in *api.ListGroupsRequest, opts ...grpc.CallOption) (*api.GroupList, error)
	// List all users that are part of a group.
	ListGroupUsers(ctx context.Context, in *api.ListGroupUsersRequest, opts ...grpc.CallOption) (*api.GroupUserList, error)
	// List leaderboard records.
	ListLeaderboardRecords(ctx context.Context, in *api.ListLeaderboardRecordsRequest, opts ...grpc.CallOption) (*api.LeaderboardRecordList, error)
	// List leaderboard records that belong to a user.
	ListLeaderboardRecordsAroundOwner(ctx context.Context, in *api.ListLeaderboardRecordsAroundOwnerRequest, opts ...grpc.CallOption) (*api.LeaderboardRecordList, error)
	// Fetch list of running matches.
	ListMatches(ctx context.Context, in *api.ListMatchesRequest, opts ...grpc.CallOption) (*api.MatchList, error)
	// Fetch list of notifications.
	ListNotifications(ctx context.Context, in *api.ListNotificationsRequest, opts ...grpc.CallOption) (*api.NotificationList, error)
	// List publicly readable storage objects in a given collection.
	ListStorageObjects(ctx context.Context, in *api.ListStorageObjectsRequest, opts ...grpc.CallOption) (*api.StorageObjectList, error)
	// List user's subscriptions.
	ListSubscriptions(ctx context.Context, in *api.ListSubscriptionsRequest, opts ...grpc.CallOption) (*api.SubscriptionList, error)
	// List current or upcoming tournaments.
	ListTournaments(ctx context.Context, in *api.ListTournamentsRequest, opts ...grpc.CallOption) (*api.TournamentList, error)
	// List tournament records.
	ListTournamentRecords(ctx context.Context, in *api.ListTournamentRecordsRequest, opts ...grpc.CallOption) (*api.TournamentRecordList, error)
	// List tournament records for a given owner.
	ListTournamentRecordsAroundOwner(ctx context.Context, in *api.ListTournamentRecordsAroundOwnerRequest, opts ...grpc.CallOption) (*api.TournamentRecordList, error)
	// List groups the current user belongs to.
	ListUserGroups(ctx context.Context, in *api.ListUserGroupsRequest, opts ...grpc.CallOption) (*api.UserGroupList, error)
	// Promote a set of users in a group to the next role up.
	PromoteGroupUsers(ctx context.Context, in *api.PromoteGroupUsersRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Demote a set of users in a group to the next role down.
	DemoteGroupUsers(ctx context.Context, in *api.DemoteGroupUsersRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Get storage objects.
	ReadStorageObjects(ctx context.Context, in *api.ReadStorageObjectsRequest, opts ...grpc.CallOption) (*api.StorageObjects, error)
	// Execute a Lua function on the server.
	RpcFunc(ctx context.Context, in *api.Rpc, opts ...grpc.CallOption) (*api.Rpc, error)
	// Remove the Apple ID from the social profiles on the current user's account.
	UnlinkApple(ctx context.Context, in *api.AccountApple, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Remove the custom ID from the social profiles on the current user's account.
	UnlinkCustom(ctx context.Context, in *api.AccountCustom, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Remove the device ID from the social profiles on the current user's account.
	UnlinkDevice(ctx context.Context, in *api.AccountDevice, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Remove the email+password from the social profiles on the current user's account.
	UnlinkEmail(ctx context.Context, in *api.AccountEmail, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Remove Facebook from the social profiles on the current user's account.
	UnlinkFacebook(ctx context.Context, in *api.AccountFacebook, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Remove Facebook Instant Game profile from the social profiles on the current user's account.
	UnlinkFacebookInstantGame(ctx context.Context, in *api.AccountFacebookInstantGame, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Remove Apple's GameCenter from the social profiles on the current user's account.
	UnlinkGameCenter(ctx context.Context, in *api.AccountGameCenter, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Remove Google from the social profiles on the current user's account.
	UnlinkGoogle(ctx context.Context, in *api.AccountGoogle, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Remove Steam from the social profiles on the current user's account.
	UnlinkSteam(ctx context.Context, in *api.AccountSteam, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Update fields in the current user's account.
	UpdateAccount(ctx context.Context, in *api.UpdateAccountRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Update fields in a given group.
	UpdateGroup(ctx context.Context, in *api.UpdateGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Validate Apple IAP Receipt
	ValidatePurchaseApple(ctx context.Context, in *api.ValidatePurchaseAppleRequest, opts ...grpc.CallOption) (*api.ValidatePurchaseResponse, error)
	// Validate Apple Subscription Receipt
	ValidateSubscriptionApple(ctx context.Context, in *api.ValidateSubscriptionAppleRequest, opts ...grpc.CallOption) (*api.ValidateSubscriptionResponse, error)
	// Validate Google IAP Receipt
	ValidatePurchaseGoogle(ctx context.Context, in *api.ValidatePurchaseGoogleRequest, opts ...grpc.CallOption) (*api.ValidatePurchaseResponse, error)
	// Validate Google Subscription Receipt
	ValidateSubscriptionGoogle(ctx context.Context, in *api.ValidateSubscriptionGoogleRequest, opts ...grpc.CallOption) (*api.ValidateSubscriptionResponse, error)
	// Validate Huawei IAP Receipt
	ValidatePurchaseHuawei(ctx context.Context, in *api.ValidatePurchaseHuaweiRequest, opts ...grpc.CallOption) (*api.ValidatePurchaseResponse, error)
	// Validate FB Instant IAP Receipt
	ValidatePurchaseFacebookInstant(ctx context.Context, in *api.ValidatePurchaseFacebookInstantRequest, opts ...grpc.CallOption) (*api.ValidatePurchaseResponse, error)
	// Write a record to a leaderboard.
	WriteLeaderboardRecord(ctx context.Context, in *api.WriteLeaderboardRecordRequest, opts ...grpc.CallOption) (*api.LeaderboardRecord, error)
	// Write objects into the storage engine.
	WriteStorageObjects(ctx context.Context, in *api.WriteStorageObjectsRequest, opts ...grpc.CallOption) (*api.StorageObjectAcks, error)
	// Write a record to a tournament.
	WriteTournamentRecord(ctx context.Context, in *api.WriteTournamentRecordRequest, opts ...grpc.CallOption) (*api.LeaderboardRecord, error)
}

LayerGClient is the client API for LayerG 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.

* The LayerG RPC protocol service built with GRPC.

func NewLayerGClient

func NewLayerGClient(cc grpc.ClientConnInterface) LayerGClient

type LayerGServer

type LayerGServer interface {
	// Add friends by ID or username to a user's account.
	AddFriends(context.Context, *api.AddFriendsRequest) (*emptypb.Empty, error)
	// Add users to a group.
	AddGroupUsers(context.Context, *api.AddGroupUsersRequest) (*emptypb.Empty, error)
	// Refresh a user's session using a refresh token retrieved from a previous authentication request.
	SessionRefresh(context.Context, *api.SessionRefreshRequest) (*api.Session, error)
	// Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user.
	SessionLogout(context.Context, *api.SessionLogoutRequest) (*emptypb.Empty, error)
	// Authenticate a user with an Apple ID against the server.
	AuthenticateApple(context.Context, *api.AuthenticateAppleRequest) (*api.Session, error)
	// Authenticate a user with a custom id against the server.
	AuthenticateCustom(context.Context, *api.AuthenticateCustomRequest) (*api.Session, error)
	// Authenticate a user with a device id against the server.
	AuthenticateDevice(context.Context, *api.AuthenticateDeviceRequest) (*api.Session, error)
	// Authenticate a user with an email+password against the server.
	AuthenticateEmail(context.Context, *api.AuthenticateEmailRequest) (*api.Session, error)
	// Authenticate a user with a Facebook OAuth token against the server.
	AuthenticateFacebook(context.Context, *api.AuthenticateFacebookRequest) (*api.Session, error)
	// Authenticate a user with a Facebook Instant Game token against the server.
	AuthenticateFacebookInstantGame(context.Context, *api.AuthenticateFacebookInstantGameRequest) (*api.Session, error)
	// Authenticate a user with Apple's GameCenter against the server.
	AuthenticateGameCenter(context.Context, *api.AuthenticateGameCenterRequest) (*api.Session, error)
	// Authenticate a user with Google against the server.
	AuthenticateGoogle(context.Context, *api.AuthenticateGoogleRequest) (*api.Session, error)
	// Authenticate a user with Google against the server.
	AuthenticateTelegram(context.Context, *api.AuthenticateTelegramRequest) (*api.Session, error)
	AuthenticateUA(context.Context, *api.AuthenticateUA) (*api.Session, error)
	// Authenticate a user with Evm against the server.
	AuthenticateEvm(context.Context, *api.AuthenticateEvmRequest) (*api.Session, error)
	// Authenticate a user with Steam against the server.
	AuthenticateSteam(context.Context, *api.AuthenticateSteamRequest) (*api.Session, error)
	// Ban a set of users from a group.
	BanGroupUsers(context.Context, *api.BanGroupUsersRequest) (*emptypb.Empty, error)
	// Block one or more users by ID or username.
	BlockFriends(context.Context, *api.BlockFriendsRequest) (*emptypb.Empty, error)
	// Create a new group with the current user as the owner.
	CreateGroup(context.Context, *api.CreateGroupRequest) (*api.Group, error)
	// Delete the current user's account.
	DeleteAccount(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	// Delete one or more users by ID or username.
	DeleteFriends(context.Context, *api.DeleteFriendsRequest) (*emptypb.Empty, error)
	// Delete a group by ID.
	DeleteGroup(context.Context, *api.DeleteGroupRequest) (*emptypb.Empty, error)
	// Delete a leaderboard record.
	DeleteLeaderboardRecord(context.Context, *api.DeleteLeaderboardRecordRequest) (*emptypb.Empty, error)
	// Delete one or more notifications for the current user.
	DeleteNotifications(context.Context, *api.DeleteNotificationsRequest) (*emptypb.Empty, error)
	// Delete a tournament record.
	DeleteTournamentRecord(context.Context, *api.DeleteTournamentRecordRequest) (*emptypb.Empty, error)
	// Delete one or more objects by ID or username.
	DeleteStorageObjects(context.Context, *api.DeleteStorageObjectsRequest) (*emptypb.Empty, error)
	// Submit an event for processing in the server's registered runtime custom events handler.
	Event(context.Context, *api.Event) (*emptypb.Empty, error)
	// Fetch the current user's account.
	GetAccount(context.Context, *emptypb.Empty) (*api.Account, error)
	// Fetch zero or more users by ID and/or username.
	GetUsers(context.Context, *api.GetUsersRequest) (*api.Users, error)
	// Get subscription by product id.
	GetSubscription(context.Context, *api.GetSubscriptionRequest) (*api.ValidatedSubscription, error)
	// Get matchmaker stats.
	GetMatchmakerStats(context.Context, *emptypb.Empty) (*api.MatchmakerStats, error)
	// A healthcheck which load balancers can use to check the service.
	Healthcheck(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	// Import Facebook friends and add them to a user's account.
	ImportFacebookFriends(context.Context, *api.ImportFacebookFriendsRequest) (*emptypb.Empty, error)
	// Import Steam friends and add them to a user's account.
	ImportSteamFriends(context.Context, *api.ImportSteamFriendsRequest) (*emptypb.Empty, error)
	// Immediately join an open group, or request to join a closed one.
	JoinGroup(context.Context, *api.JoinGroupRequest) (*emptypb.Empty, error)
	// Attempt to join an open and running tournament.
	JoinTournament(context.Context, *api.JoinTournamentRequest) (*emptypb.Empty, error)
	// Kick a set of users from a group.
	KickGroupUsers(context.Context, *api.KickGroupUsersRequest) (*emptypb.Empty, error)
	// Leave a group the user is a member of.
	LeaveGroup(context.Context, *api.LeaveGroupRequest) (*emptypb.Empty, error)
	// Add an Apple ID to the social profiles on the current user's account.
	LinkApple(context.Context, *api.AccountApple) (*emptypb.Empty, error)
	// Add an EVM to the social profiles on the current user's account.
	LinkEvm(context.Context, *api.AccountEvm) (*emptypb.Empty, error)
	// Add a custom ID to the social profiles on the current user's account.
	LinkCustom(context.Context, *api.AccountCustom) (*emptypb.Empty, error)
	// Add a device ID to the social profiles on the current user's account.
	LinkDevice(context.Context, *api.AccountDevice) (*emptypb.Empty, error)
	// Add an email+password to the social profiles on the current user's account.
	LinkEmail(context.Context, *api.AccountEmail) (*emptypb.Empty, error)
	// Add Facebook to the social profiles on the current user's account.
	LinkFacebook(context.Context, *api.LinkFacebookRequest) (*emptypb.Empty, error)
	// Add Facebook Instant Game to the social profiles on the current user's account.
	LinkFacebookInstantGame(context.Context, *api.AccountFacebookInstantGame) (*emptypb.Empty, error)
	// Add Apple's GameCenter to the social profiles on the current user's account.
	LinkGameCenter(context.Context, *api.AccountGameCenter) (*emptypb.Empty, error)
	// Add Google to the social profiles on the current user's account.
	LinkGoogle(context.Context, *api.AccountGoogle) (*emptypb.Empty, error)
	// Add Steam to the social profiles on the current user's account.
	LinkSteam(context.Context, *api.LinkSteamRequest) (*emptypb.Empty, error)
	// List a channel's message history.
	ListChannelMessages(context.Context, *api.ListChannelMessagesRequest) (*api.ChannelMessageList, error)
	// List all friends for the current user.
	ListFriends(context.Context, *api.ListFriendsRequest) (*api.FriendList, error)
	// List friends of friends for the current user.
	ListFriendsOfFriends(context.Context, *api.ListFriendsOfFriendsRequest) (*api.FriendsOfFriendsList, error)
	// List groups based on given filters.
	ListGroups(context.Context, *api.ListGroupsRequest) (*api.GroupList, error)
	// List all users that are part of a group.
	ListGroupUsers(context.Context, *api.ListGroupUsersRequest) (*api.GroupUserList, error)
	// List leaderboard records.
	ListLeaderboardRecords(context.Context, *api.ListLeaderboardRecordsRequest) (*api.LeaderboardRecordList, error)
	// List leaderboard records that belong to a user.
	ListLeaderboardRecordsAroundOwner(context.Context, *api.ListLeaderboardRecordsAroundOwnerRequest) (*api.LeaderboardRecordList, error)
	// Fetch list of running matches.
	ListMatches(context.Context, *api.ListMatchesRequest) (*api.MatchList, error)
	// Fetch list of notifications.
	ListNotifications(context.Context, *api.ListNotificationsRequest) (*api.NotificationList, error)
	// List publicly readable storage objects in a given collection.
	ListStorageObjects(context.Context, *api.ListStorageObjectsRequest) (*api.StorageObjectList, error)
	// List user's subscriptions.
	ListSubscriptions(context.Context, *api.ListSubscriptionsRequest) (*api.SubscriptionList, error)
	// List current or upcoming tournaments.
	ListTournaments(context.Context, *api.ListTournamentsRequest) (*api.TournamentList, error)
	// List tournament records.
	ListTournamentRecords(context.Context, *api.ListTournamentRecordsRequest) (*api.TournamentRecordList, error)
	// List tournament records for a given owner.
	ListTournamentRecordsAroundOwner(context.Context, *api.ListTournamentRecordsAroundOwnerRequest) (*api.TournamentRecordList, error)
	// List groups the current user belongs to.
	ListUserGroups(context.Context, *api.ListUserGroupsRequest) (*api.UserGroupList, error)
	// Promote a set of users in a group to the next role up.
	PromoteGroupUsers(context.Context, *api.PromoteGroupUsersRequest) (*emptypb.Empty, error)
	// Demote a set of users in a group to the next role down.
	DemoteGroupUsers(context.Context, *api.DemoteGroupUsersRequest) (*emptypb.Empty, error)
	// Get storage objects.
	ReadStorageObjects(context.Context, *api.ReadStorageObjectsRequest) (*api.StorageObjects, error)
	// Execute a Lua function on the server.
	RpcFunc(context.Context, *api.Rpc) (*api.Rpc, error)
	// Remove the Apple ID from the social profiles on the current user's account.
	UnlinkApple(context.Context, *api.AccountApple) (*emptypb.Empty, error)
	// Remove the custom ID from the social profiles on the current user's account.
	UnlinkCustom(context.Context, *api.AccountCustom) (*emptypb.Empty, error)
	// Remove the device ID from the social profiles on the current user's account.
	UnlinkDevice(context.Context, *api.AccountDevice) (*emptypb.Empty, error)
	// Remove the email+password from the social profiles on the current user's account.
	UnlinkEmail(context.Context, *api.AccountEmail) (*emptypb.Empty, error)
	// Remove Facebook from the social profiles on the current user's account.
	UnlinkFacebook(context.Context, *api.AccountFacebook) (*emptypb.Empty, error)
	// Remove Facebook Instant Game profile from the social profiles on the current user's account.
	UnlinkFacebookInstantGame(context.Context, *api.AccountFacebookInstantGame) (*emptypb.Empty, error)
	// Remove Apple's GameCenter from the social profiles on the current user's account.
	UnlinkGameCenter(context.Context, *api.AccountGameCenter) (*emptypb.Empty, error)
	// Remove Google from the social profiles on the current user's account.
	UnlinkGoogle(context.Context, *api.AccountGoogle) (*emptypb.Empty, error)
	// Remove Steam from the social profiles on the current user's account.
	UnlinkSteam(context.Context, *api.AccountSteam) (*emptypb.Empty, error)
	// Update fields in the current user's account.
	UpdateAccount(context.Context, *api.UpdateAccountRequest) (*emptypb.Empty, error)
	// Update fields in a given group.
	UpdateGroup(context.Context, *api.UpdateGroupRequest) (*emptypb.Empty, error)
	// Validate Apple IAP Receipt
	ValidatePurchaseApple(context.Context, *api.ValidatePurchaseAppleRequest) (*api.ValidatePurchaseResponse, error)
	// Validate Apple Subscription Receipt
	ValidateSubscriptionApple(context.Context, *api.ValidateSubscriptionAppleRequest) (*api.ValidateSubscriptionResponse, error)
	// Validate Google IAP Receipt
	ValidatePurchaseGoogle(context.Context, *api.ValidatePurchaseGoogleRequest) (*api.ValidatePurchaseResponse, error)
	// Validate Google Subscription Receipt
	ValidateSubscriptionGoogle(context.Context, *api.ValidateSubscriptionGoogleRequest) (*api.ValidateSubscriptionResponse, error)
	// Validate Huawei IAP Receipt
	ValidatePurchaseHuawei(context.Context, *api.ValidatePurchaseHuaweiRequest) (*api.ValidatePurchaseResponse, error)
	// Validate FB Instant IAP Receipt
	ValidatePurchaseFacebookInstant(context.Context, *api.ValidatePurchaseFacebookInstantRequest) (*api.ValidatePurchaseResponse, error)
	// Write a record to a leaderboard.
	WriteLeaderboardRecord(context.Context, *api.WriteLeaderboardRecordRequest) (*api.LeaderboardRecord, error)
	// Write objects into the storage engine.
	WriteStorageObjects(context.Context, *api.WriteStorageObjectsRequest) (*api.StorageObjectAcks, error)
	// Write a record to a tournament.
	WriteTournamentRecord(context.Context, *api.WriteTournamentRecordRequest) (*api.LeaderboardRecord, error)
	// contains filtered or unexported methods
}

LayerGServer is the server API for LayerG service. All implementations must embed UnimplementedLayerGServer for forward compatibility.

* The LayerG RPC protocol service built with GRPC.

type UnimplementedLayerGServer

type UnimplementedLayerGServer struct{}

UnimplementedLayerGServer 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 (UnimplementedLayerGServer) AddFriends

func (UnimplementedLayerGServer) AddGroupUsers

func (UnimplementedLayerGServer) AuthenticateApple

func (UnimplementedLayerGServer) AuthenticateCustom

func (UnimplementedLayerGServer) AuthenticateDevice

func (UnimplementedLayerGServer) AuthenticateEmail

func (UnimplementedLayerGServer) AuthenticateEvm

func (UnimplementedLayerGServer) AuthenticateFacebook

func (UnimplementedLayerGServer) AuthenticateFacebookInstantGame

func (UnimplementedLayerGServer) AuthenticateGameCenter

func (UnimplementedLayerGServer) AuthenticateGoogle

func (UnimplementedLayerGServer) AuthenticateSteam

func (UnimplementedLayerGServer) AuthenticateTelegram

func (UnimplementedLayerGServer) AuthenticateUA

func (UnimplementedLayerGServer) BanGroupUsers

func (UnimplementedLayerGServer) BlockFriends

func (UnimplementedLayerGServer) CreateGroup

func (UnimplementedLayerGServer) DeleteAccount

func (UnimplementedLayerGServer) DeleteFriends

func (UnimplementedLayerGServer) DeleteGroup

func (UnimplementedLayerGServer) DeleteLeaderboardRecord

func (UnimplementedLayerGServer) DeleteNotifications

func (UnimplementedLayerGServer) DeleteStorageObjects

func (UnimplementedLayerGServer) DeleteTournamentRecord

func (UnimplementedLayerGServer) DemoteGroupUsers

func (UnimplementedLayerGServer) Event

func (UnimplementedLayerGServer) GetAccount

func (UnimplementedLayerGServer) GetMatchmakerStats

func (UnimplementedLayerGServer) GetSubscription

func (UnimplementedLayerGServer) GetUsers

func (UnimplementedLayerGServer) Healthcheck

func (UnimplementedLayerGServer) ImportFacebookFriends

func (UnimplementedLayerGServer) ImportSteamFriends

func (UnimplementedLayerGServer) JoinGroup

func (UnimplementedLayerGServer) JoinTournament

func (UnimplementedLayerGServer) KickGroupUsers

func (UnimplementedLayerGServer) LeaveGroup

func (UnimplementedLayerGServer) LinkApple

func (UnimplementedLayerGServer) LinkCustom

func (UnimplementedLayerGServer) LinkDevice

func (UnimplementedLayerGServer) LinkEmail

func (UnimplementedLayerGServer) LinkEvm

func (UnimplementedLayerGServer) LinkFacebook

func (UnimplementedLayerGServer) LinkFacebookInstantGame

func (UnimplementedLayerGServer) LinkGameCenter

func (UnimplementedLayerGServer) LinkGoogle

func (UnimplementedLayerGServer) LinkSteam

func (UnimplementedLayerGServer) ListChannelMessages

func (UnimplementedLayerGServer) ListFriends

func (UnimplementedLayerGServer) ListGroupUsers

func (UnimplementedLayerGServer) ListGroups

func (UnimplementedLayerGServer) ListMatches

func (UnimplementedLayerGServer) ListNotifications

func (UnimplementedLayerGServer) ListStorageObjects

func (UnimplementedLayerGServer) ListSubscriptions

func (UnimplementedLayerGServer) ListTournaments

func (UnimplementedLayerGServer) ListUserGroups

func (UnimplementedLayerGServer) PromoteGroupUsers

func (UnimplementedLayerGServer) ReadStorageObjects

func (UnimplementedLayerGServer) RpcFunc

func (UnimplementedLayerGServer) SessionLogout

func (UnimplementedLayerGServer) SessionRefresh

func (UnimplementedLayerGServer) UnlinkApple

func (UnimplementedLayerGServer) UnlinkCustom

func (UnimplementedLayerGServer) UnlinkDevice

func (UnimplementedLayerGServer) UnlinkEmail

func (UnimplementedLayerGServer) UnlinkFacebook

func (UnimplementedLayerGServer) UnlinkFacebookInstantGame

func (UnimplementedLayerGServer) UnlinkGameCenter

func (UnimplementedLayerGServer) UnlinkGoogle

func (UnimplementedLayerGServer) UnlinkSteam

func (UnimplementedLayerGServer) UpdateAccount

func (UnimplementedLayerGServer) UpdateGroup

func (UnimplementedLayerGServer) WriteLeaderboardRecord

func (UnimplementedLayerGServer) WriteStorageObjects

func (UnimplementedLayerGServer) WriteTournamentRecord

type UnsafeLayerGServer

type UnsafeLayerGServer interface {
	// contains filtered or unexported methods
}

UnsafeLayerGServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LayerGServer will result in compilation errors.

Jump to

Keyboard shortcuts

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