Documentation ¶
Index ¶
- type MockFleetManager
- func (_m *MockFleetManager) Create(ctx context.Context, maxPlayers int, userIds []string, ...) error
- func (_m *MockFleetManager) Get(ctx context.Context, id string) (*runtime.InstanceInfo, error)
- func (_m *MockFleetManager) Join(ctx context.Context, id string, userIds []string, metadata map[string]string) (*runtime.JoinInfo, error)
- func (_m *MockFleetManager) List(ctx context.Context, query string, limit int, previousCursor string) ([]*runtime.InstanceInfo, string, error)
- type MockFleetManagerInitializer
- func (_m *MockFleetManagerInitializer) Create(ctx context.Context, maxPlayers int, userIds []string, ...) error
- func (_m *MockFleetManagerInitializer) Delete(ctx context.Context, id string) error
- func (_m *MockFleetManagerInitializer) Get(ctx context.Context, id string) (*runtime.InstanceInfo, error)
- func (_m *MockFleetManagerInitializer) Init(nk runtime.NakamaModule, callbackHandler runtime.FmCallbackHandler) error
- func (_m *MockFleetManagerInitializer) Join(ctx context.Context, id string, userIds []string, metadata map[string]string) (*runtime.JoinInfo, error)
- func (_m *MockFleetManagerInitializer) List(ctx context.Context, query string, limit int, previousCursor string) ([]*runtime.InstanceInfo, string, error)
- func (_m *MockFleetManagerInitializer) Update(ctx context.Context, id string, playerCount int, ...) error
- type MockFmCallbackHandler
- type MockFmCreateCallbackFn
- type MockInitializer
- func (_m *MockInitializer) RegisterAfterAddFriends(...) error
- func (_m *MockInitializer) RegisterAfterAddGroupUsers(...) error
- func (_m *MockInitializer) RegisterAfterAuthenticateApple(...) error
- func (_m *MockInitializer) RegisterAfterAuthenticateCustom(...) error
- func (_m *MockInitializer) RegisterAfterAuthenticateDevice(...) error
- func (_m *MockInitializer) RegisterAfterAuthenticateEmail(...) error
- func (_m *MockInitializer) RegisterAfterAuthenticateFacebook(...) error
- func (_m *MockInitializer) RegisterAfterAuthenticateFacebookInstantGame(...) error
- func (_m *MockInitializer) RegisterAfterAuthenticateGameCenter(...) error
- func (_m *MockInitializer) RegisterAfterAuthenticateGoogle(...) error
- func (_m *MockInitializer) RegisterAfterAuthenticateSteam(...) error
- func (_m *MockInitializer) RegisterAfterBanGroupUsers(...) error
- func (_m *MockInitializer) RegisterAfterBlockFriends(...) error
- func (_m *MockInitializer) RegisterAfterCreateGroup(...) error
- func (_m *MockInitializer) RegisterAfterDeleteAccount(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule) error) error
- func (_m *MockInitializer) RegisterAfterDeleteFriends(...) error
- func (_m *MockInitializer) RegisterAfterDeleteGroup(...) error
- func (_m *MockInitializer) RegisterAfterDeleteLeaderboardRecord(...) error
- func (_m *MockInitializer) RegisterAfterDeleteNotifications(...) error
- func (_m *MockInitializer) RegisterAfterDeleteStorageObjects(...) error
- func (_m *MockInitializer) RegisterAfterDeleteTournamentRecord(...) error
- func (_m *MockInitializer) RegisterAfterDemoteGroupUsers(...) error
- func (_m *MockInitializer) RegisterAfterGetAccount(...) error
- func (_m *MockInitializer) RegisterAfterGetSubscription(...) error
- func (_m *MockInitializer) RegisterAfterGetUsers(...) error
- func (_m *MockInitializer) RegisterAfterImportFacebookFriends(...) error
- func (_m *MockInitializer) RegisterAfterImportSteamFriends(...) error
- func (_m *MockInitializer) RegisterAfterJoinGroup(...) error
- func (_m *MockInitializer) RegisterAfterJoinTournament(...) error
- func (_m *MockInitializer) RegisterAfterKickGroupUsers(...) error
- func (_m *MockInitializer) RegisterAfterLeaveGroup(...) error
- func (_m *MockInitializer) RegisterAfterLinkApple(...) error
- func (_m *MockInitializer) RegisterAfterLinkCustom(...) error
- func (_m *MockInitializer) RegisterAfterLinkDevice(...) error
- func (_m *MockInitializer) RegisterAfterLinkEmail(...) error
- func (_m *MockInitializer) RegisterAfterLinkFacebook(...) error
- func (_m *MockInitializer) RegisterAfterLinkFacebookInstantGame(...) error
- func (_m *MockInitializer) RegisterAfterLinkGameCenter(...) error
- func (_m *MockInitializer) RegisterAfterLinkGoogle(...) error
- func (_m *MockInitializer) RegisterAfterLinkSteam(...) error
- func (_m *MockInitializer) RegisterAfterListChannelMessages(...) error
- func (_m *MockInitializer) RegisterAfterListFriends(...) error
- func (_m *MockInitializer) RegisterAfterListFriendsOfFriends(...) error
- func (_m *MockInitializer) RegisterAfterListGroupUsers(...) error
- func (_m *MockInitializer) RegisterAfterListGroups(...) error
- func (_m *MockInitializer) RegisterAfterListLeaderboardRecords(...) error
- func (_m *MockInitializer) RegisterAfterListLeaderboardRecordsAroundOwner(...) error
- func (_m *MockInitializer) RegisterAfterListMatches(...) error
- func (_m *MockInitializer) RegisterAfterListNotifications(...) error
- func (_m *MockInitializer) RegisterAfterListStorageObjects(...) error
- func (_m *MockInitializer) RegisterAfterListSubscriptions(...) error
- func (_m *MockInitializer) RegisterAfterListTournamentRecords(...) error
- func (_m *MockInitializer) RegisterAfterListTournamentRecordsAroundOwner(...) error
- func (_m *MockInitializer) RegisterAfterListTournaments(...) error
- func (_m *MockInitializer) RegisterAfterListUserGroups(...) error
- func (_m *MockInitializer) RegisterAfterPromoteGroupUsers(...) error
- func (_m *MockInitializer) RegisterAfterReadStorageObjects(...) error
- func (_m *MockInitializer) RegisterAfterRt(id string, ...) error
- func (_m *MockInitializer) RegisterAfterSessionLogout(...) error
- func (_m *MockInitializer) RegisterAfterSessionRefresh(...) error
- func (_m *MockInitializer) RegisterAfterUnlinkApple(...) error
- func (_m *MockInitializer) RegisterAfterUnlinkCustom(...) error
- func (_m *MockInitializer) RegisterAfterUnlinkDevice(...) error
- func (_m *MockInitializer) RegisterAfterUnlinkEmail(...) error
- func (_m *MockInitializer) RegisterAfterUnlinkFacebook(...) error
- func (_m *MockInitializer) RegisterAfterUnlinkFacebookInstantGame(...) error
- func (_m *MockInitializer) RegisterAfterUnlinkGameCenter(...) error
- func (_m *MockInitializer) RegisterAfterUnlinkGoogle(...) error
- func (_m *MockInitializer) RegisterAfterUnlinkSteam(...) error
- func (_m *MockInitializer) RegisterAfterUpdateAccount(...) error
- func (_m *MockInitializer) RegisterAfterUpdateGroup(...) error
- func (_m *MockInitializer) RegisterAfterValidatePurchaseApple(...) error
- func (_m *MockInitializer) RegisterAfterValidatePurchaseFacebookInstant(...) error
- func (_m *MockInitializer) RegisterAfterValidatePurchaseGoogle(...) error
- func (_m *MockInitializer) RegisterAfterValidatePurchaseHuawei(...) error
- func (_m *MockInitializer) RegisterAfterValidateSubscriptionApple(...) error
- func (_m *MockInitializer) RegisterAfterValidateSubscriptionGoogle(...) error
- func (_m *MockInitializer) RegisterAfterWriteLeaderboardRecord(...) error
- func (_m *MockInitializer) RegisterAfterWriteStorageObjects(...) error
- func (_m *MockInitializer) RegisterAfterWriteTournamentRecord(...) error
- func (_m *MockInitializer) RegisterBeforeAddFriends(...) error
- func (_m *MockInitializer) RegisterBeforeAddGroupUsers(...) error
- func (_m *MockInitializer) RegisterBeforeAuthenticateApple(...) error
- func (_m *MockInitializer) RegisterBeforeAuthenticateCustom(...) error
- func (_m *MockInitializer) RegisterBeforeAuthenticateDevice(...) error
- func (_m *MockInitializer) RegisterBeforeAuthenticateEmail(...) error
- func (_m *MockInitializer) RegisterBeforeAuthenticateFacebook(...) error
- func (_m *MockInitializer) RegisterBeforeAuthenticateFacebookInstantGame(...) error
- func (_m *MockInitializer) RegisterBeforeAuthenticateGameCenter(...) error
- func (_m *MockInitializer) RegisterBeforeAuthenticateGoogle(...) error
- func (_m *MockInitializer) RegisterBeforeAuthenticateSteam(...) error
- func (_m *MockInitializer) RegisterBeforeBanGroupUsers(...) error
- func (_m *MockInitializer) RegisterBeforeBlockFriends(...) error
- func (_m *MockInitializer) RegisterBeforeCreateGroup(...) error
- func (_m *MockInitializer) RegisterBeforeDeleteAccount(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule) error) error
- func (_m *MockInitializer) RegisterBeforeDeleteFriends(...) error
- func (_m *MockInitializer) RegisterBeforeDeleteGroup(...) error
- func (_m *MockInitializer) RegisterBeforeDeleteLeaderboardRecord(...) error
- func (_m *MockInitializer) RegisterBeforeDeleteNotifications(...) error
- func (_m *MockInitializer) RegisterBeforeDeleteStorageObjects(...) error
- func (_m *MockInitializer) RegisterBeforeDeleteTournamentRecord(...) error
- func (_m *MockInitializer) RegisterBeforeDemoteGroupUsers(...) error
- func (_m *MockInitializer) RegisterBeforeGetAccount(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule) error) error
- func (_m *MockInitializer) RegisterBeforeGetSubscription(...) error
- func (_m *MockInitializer) RegisterBeforeGetUsers(...) error
- func (_m *MockInitializer) RegisterBeforeImportFacebookFriends(...) error
- func (_m *MockInitializer) RegisterBeforeImportSteamFriends(...) error
- func (_m *MockInitializer) RegisterBeforeJoinGroup(...) error
- func (_m *MockInitializer) RegisterBeforeJoinTournament(...) error
- func (_m *MockInitializer) RegisterBeforeKickGroupUsers(...) error
- func (_m *MockInitializer) RegisterBeforeLeaveGroup(...) error
- func (_m *MockInitializer) RegisterBeforeLinkApple(...) error
- func (_m *MockInitializer) RegisterBeforeLinkCustom(...) error
- func (_m *MockInitializer) RegisterBeforeLinkDevice(...) error
- func (_m *MockInitializer) RegisterBeforeLinkEmail(...) error
- func (_m *MockInitializer) RegisterBeforeLinkFacebook(...) error
- func (_m *MockInitializer) RegisterBeforeLinkFacebookInstantGame(...) error
- func (_m *MockInitializer) RegisterBeforeLinkGameCenter(...) error
- func (_m *MockInitializer) RegisterBeforeLinkGoogle(...) error
- func (_m *MockInitializer) RegisterBeforeLinkSteam(...) error
- func (_m *MockInitializer) RegisterBeforeListChannelMessages(...) error
- func (_m *MockInitializer) RegisterBeforeListFriends(...) error
- func (_m *MockInitializer) RegisterBeforeListFriendsOfFriends(...) error
- func (_m *MockInitializer) RegisterBeforeListGroupUsers(...) error
- func (_m *MockInitializer) RegisterBeforeListGroups(...) error
- func (_m *MockInitializer) RegisterBeforeListLeaderboardRecords(...) error
- func (_m *MockInitializer) RegisterBeforeListLeaderboardRecordsAroundOwner(...) error
- func (_m *MockInitializer) RegisterBeforeListMatches(...) error
- func (_m *MockInitializer) RegisterBeforeListNotifications(...) error
- func (_m *MockInitializer) RegisterBeforeListStorageObjects(...) error
- func (_m *MockInitializer) RegisterBeforeListSubscriptions(...) error
- func (_m *MockInitializer) RegisterBeforeListTournamentRecords(...) error
- func (_m *MockInitializer) RegisterBeforeListTournamentRecordsAroundOwner(...) error
- func (_m *MockInitializer) RegisterBeforeListTournaments(...) error
- func (_m *MockInitializer) RegisterBeforeListUserGroups(...) error
- func (_m *MockInitializer) RegisterBeforePromoteGroupUsers(...) error
- func (_m *MockInitializer) RegisterBeforeReadStorageObjects(...) error
- func (_m *MockInitializer) RegisterBeforeRt(id string, ...) error
- func (_m *MockInitializer) RegisterBeforeSessionLogout(...) error
- func (_m *MockInitializer) RegisterBeforeSessionRefresh(...) error
- func (_m *MockInitializer) RegisterBeforeUnlinkApple(...) error
- func (_m *MockInitializer) RegisterBeforeUnlinkCustom(...) error
- func (_m *MockInitializer) RegisterBeforeUnlinkDevice(...) error
- func (_m *MockInitializer) RegisterBeforeUnlinkEmail(...) error
- func (_m *MockInitializer) RegisterBeforeUnlinkFacebook(...) error
- func (_m *MockInitializer) RegisterBeforeUnlinkFacebookInstantGame(...) error
- func (_m *MockInitializer) RegisterBeforeUnlinkGameCenter(...) error
- func (_m *MockInitializer) RegisterBeforeUnlinkGoogle(...) error
- func (_m *MockInitializer) RegisterBeforeUnlinkSteam(...) error
- func (_m *MockInitializer) RegisterBeforeUpdateAccount(...) error
- func (_m *MockInitializer) RegisterBeforeUpdateGroup(...) error
- func (_m *MockInitializer) RegisterBeforeValidatePurchaseApple(...) error
- func (_m *MockInitializer) RegisterBeforeValidatePurchaseFacebookInstant(...) error
- func (_m *MockInitializer) RegisterBeforeValidatePurchaseGoogle(...) error
- func (_m *MockInitializer) RegisterBeforeValidatePurchaseHuawei(...) error
- func (_m *MockInitializer) RegisterBeforeValidateSubscriptionApple(...) error
- func (_m *MockInitializer) RegisterBeforeValidateSubscriptionGoogle(...) error
- func (_m *MockInitializer) RegisterBeforeWriteLeaderboardRecord(...) error
- func (_m *MockInitializer) RegisterBeforeWriteStorageObjects(...) error
- func (_m *MockInitializer) RegisterBeforeWriteTournamentRecord(...) error
- func (_m *MockInitializer) RegisterEvent(fn func(context.Context, runtime.Logger, *api.Event)) error
- func (_m *MockInitializer) RegisterEventSessionEnd(fn func(context.Context, runtime.Logger, *api.Event)) error
- func (_m *MockInitializer) RegisterEventSessionStart(fn func(context.Context, runtime.Logger, *api.Event)) error
- func (_m *MockInitializer) RegisterFleetManager(fleetManagerInit runtime.FleetManagerInitializer) error
- func (_m *MockInitializer) RegisterLeaderboardReset(...) error
- func (_m *MockInitializer) RegisterMatch(name string, ...) error
- func (_m *MockInitializer) RegisterMatchmakerMatched(...) error
- func (_m *MockInitializer) RegisterMatchmakerOverride(...) error
- func (_m *MockInitializer) RegisterPurchaseNotificationApple(...) error
- func (_m *MockInitializer) RegisterPurchaseNotificationGoogle(...) error
- func (_m *MockInitializer) RegisterRpc(id string, ...) error
- func (_m *MockInitializer) RegisterShutdown(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule)) error
- func (_m *MockInitializer) RegisterStorageIndex(name string, collection string, key string, fields []string, ...) error
- func (_m *MockInitializer) RegisterStorageIndexFilter(indexName string, ...) error
- func (_m *MockInitializer) RegisterSubscriptionNotificationApple(...) error
- func (_m *MockInitializer) RegisterSubscriptionNotificationGoogle(...) error
- func (_m *MockInitializer) RegisterTournamentEnd(...) error
- func (_m *MockInitializer) RegisterTournamentReset(...) error
- type MockLogger
- func (_m *MockLogger) Debug(format string, v ...interface{})
- func (_m *MockLogger) Error(format string, v ...interface{})
- func (_m *MockLogger) Fields() map[string]interface{}
- func (_m *MockLogger) Info(format string, v ...interface{})
- func (_m *MockLogger) Warn(format string, v ...interface{})
- func (_m *MockLogger) WithField(key string, v interface{}) runtime.Logger
- func (_m *MockLogger) WithFields(fields map[string]interface{}) runtime.Logger
- type MockMatch
- func (_m *MockMatch) MatchInit(ctx context.Context, logger runtime.Logger, db *sql.DB, ...) (interface{}, int, string)
- func (_m *MockMatch) MatchJoin(ctx context.Context, logger runtime.Logger, db *sql.DB, ...) interface{}
- func (_m *MockMatch) MatchJoinAttempt(ctx context.Context, logger runtime.Logger, db *sql.DB, ...) (interface{}, bool, string)
- func (_m *MockMatch) MatchLeave(ctx context.Context, logger runtime.Logger, db *sql.DB, ...) interface{}
- func (_m *MockMatch) MatchLoop(ctx context.Context, logger runtime.Logger, db *sql.DB, ...) interface{}
- func (_m *MockMatch) MatchSignal(ctx context.Context, logger runtime.Logger, db *sql.DB, ...) (interface{}, string)
- func (_m *MockMatch) MatchTerminate(ctx context.Context, logger runtime.Logger, db *sql.DB, ...) interface{}
- type MockMatchData
- func (_m *MockMatchData) GetData() []byte
- func (_m *MockMatchData) GetHidden() bool
- func (_m *MockMatchData) GetNodeId() string
- func (_m *MockMatchData) GetOpCode() int64
- func (_m *MockMatchData) GetPersistence() bool
- func (_m *MockMatchData) GetReason() runtime.PresenceReason
- func (_m *MockMatchData) GetReceiveTime() int64
- func (_m *MockMatchData) GetReliable() bool
- func (_m *MockMatchData) GetSessionId() string
- func (_m *MockMatchData) GetStatus() string
- func (_m *MockMatchData) GetUserId() string
- func (_m *MockMatchData) GetUsername() string
- type MockMatchDispatcher
- func (_m *MockMatchDispatcher) BroadcastMessage(opCode int64, data []byte, presences []runtime.Presence, ...) error
- func (_m *MockMatchDispatcher) BroadcastMessageDeferred(opCode int64, data []byte, presences []runtime.Presence, ...) error
- func (_m *MockMatchDispatcher) MatchKick(presences []runtime.Presence) error
- func (_m *MockMatchDispatcher) MatchLabelUpdate(label string) error
- type MockMatchmakerEntry
- type MockNakamaModule
- func (_m *MockNakamaModule) AccountDeleteId(ctx context.Context, userID string, recorded bool) error
- func (_m *MockNakamaModule) AccountExportId(ctx context.Context, userID string) (string, error)
- func (_m *MockNakamaModule) AccountGetId(ctx context.Context, userID string) (*api.Account, error)
- func (_m *MockNakamaModule) AccountUpdateId(ctx context.Context, userID string, username string, ...) error
- func (_m *MockNakamaModule) AccountsGetId(ctx context.Context, userIDs []string) ([]*api.Account, error)
- func (_m *MockNakamaModule) AuthenticateApple(ctx context.Context, token string, username string, create bool) (string, string, bool, error)
- func (_m *MockNakamaModule) AuthenticateCustom(ctx context.Context, id string, username string, create bool) (string, string, bool, error)
- func (_m *MockNakamaModule) AuthenticateDevice(ctx context.Context, id string, username string, create bool) (string, string, bool, error)
- func (_m *MockNakamaModule) AuthenticateEmail(ctx context.Context, email string, password string, username string, ...) (string, string, bool, error)
- func (_m *MockNakamaModule) AuthenticateFacebook(ctx context.Context, token string, importFriends bool, username string, ...) (string, string, bool, error)
- func (_m *MockNakamaModule) AuthenticateFacebookInstantGame(ctx context.Context, signedPlayerInfo string, username string, create bool) (string, string, bool, error)
- func (_m *MockNakamaModule) AuthenticateGameCenter(ctx context.Context, playerID string, bundleID string, timestamp int64, ...) (string, string, bool, error)
- func (_m *MockNakamaModule) AuthenticateGoogle(ctx context.Context, token string, username string, create bool) (string, string, bool, error)
- func (_m *MockNakamaModule) AuthenticateSteam(ctx context.Context, token string, username string, create bool) (string, string, bool, error)
- func (_m *MockNakamaModule) AuthenticateTokenGenerate(userID string, username string, exp int64, vars map[string]string) (string, int64, error)
- func (_m *MockNakamaModule) ChannelIdBuild(ctx context.Context, sender string, target string, ...) (string, error)
- func (_m *MockNakamaModule) ChannelMessageRemove(ctx context.Context, channelId string, messageId string, senderId string, ...) (*rtapi.ChannelMessageAck, error)
- func (_m *MockNakamaModule) ChannelMessageSend(ctx context.Context, channelID string, content map[string]interface{}, ...) (*rtapi.ChannelMessageAck, error)
- func (_m *MockNakamaModule) ChannelMessageUpdate(ctx context.Context, channelID string, messageID string, ...) (*rtapi.ChannelMessageAck, error)
- func (_m *MockNakamaModule) ChannelMessagesList(ctx context.Context, channelId string, limit int, forward bool, cursor string) ([]*api.ChannelMessage, string, string, error)
- func (_m *MockNakamaModule) CronNext(expression string, timestamp int64) (int64, error)
- func (_m *MockNakamaModule) CronPrev(expression string, timestamp int64) (int64, error)
- func (_m *MockNakamaModule) Event(ctx context.Context, evt *api.Event) error
- func (_m *MockNakamaModule) FriendsAdd(ctx context.Context, userID string, username string, ids []string, ...) error
- func (_m *MockNakamaModule) FriendsBlock(ctx context.Context, userID string, username string, ids []string, ...) error
- func (_m *MockNakamaModule) FriendsDelete(ctx context.Context, userID string, username string, ids []string, ...) error
- func (_m *MockNakamaModule) FriendsList(ctx context.Context, userID string, limit int, state *int, cursor string) ([]*api.Friend, string, error)
- func (_m *MockNakamaModule) FriendsOfFriendsList(ctx context.Context, userID string, limit int, cursor string) ([]*api.FriendsOfFriendsList_FriendOfFriend, string, error)
- func (_m *MockNakamaModule) GetFleetManager() runtime.FleetManager
- func (_m *MockNakamaModule) GetSatori() runtime.Satori
- func (_m *MockNakamaModule) GroupCreate(ctx context.Context, userID string, name string, creatorID string, ...) (*api.Group, error)
- func (_m *MockNakamaModule) GroupDelete(ctx context.Context, id string) error
- func (_m *MockNakamaModule) GroupUpdate(ctx context.Context, id string, userID string, name string, creatorID string, ...) error
- func (_m *MockNakamaModule) GroupUserJoin(ctx context.Context, groupID string, userID string, username string) error
- func (_m *MockNakamaModule) GroupUserLeave(ctx context.Context, groupID string, userID string, username string) error
- func (_m *MockNakamaModule) GroupUsersAdd(ctx context.Context, callerID string, groupID string, userIDs []string) error
- func (_m *MockNakamaModule) GroupUsersBan(ctx context.Context, callerID string, groupID string, userIDs []string) error
- func (_m *MockNakamaModule) GroupUsersDemote(ctx context.Context, callerID string, groupID string, userIDs []string) error
- func (_m *MockNakamaModule) GroupUsersKick(ctx context.Context, callerID string, groupID string, userIDs []string) error
- func (_m *MockNakamaModule) GroupUsersList(ctx context.Context, id string, limit int, state *int, cursor string) ([]*api.GroupUserList_GroupUser, string, error)
- func (_m *MockNakamaModule) GroupUsersPromote(ctx context.Context, callerID string, groupID string, userIDs []string) error
- func (_m *MockNakamaModule) GroupsGetId(ctx context.Context, groupIDs []string) ([]*api.Group, error)
- func (_m *MockNakamaModule) GroupsGetRandom(ctx context.Context, count int) ([]*api.Group, error)
- func (_m *MockNakamaModule) GroupsList(ctx context.Context, name string, langTag string, members *int, open *bool, ...) ([]*api.Group, string, error)
- func (_m *MockNakamaModule) LeaderboardCreate(ctx context.Context, id string, authoritative bool, sortOrder string, ...) error
- func (_m *MockNakamaModule) LeaderboardDelete(ctx context.Context, id string) error
- func (_m *MockNakamaModule) LeaderboardList(limit int, cursor string) (*api.LeaderboardList, error)
- func (_m *MockNakamaModule) LeaderboardRecordDelete(ctx context.Context, id string, ownerID string) error
- func (_m *MockNakamaModule) LeaderboardRecordWrite(ctx context.Context, id string, ownerID string, username string, score int64, ...) (*api.LeaderboardRecord, error)
- func (_m *MockNakamaModule) LeaderboardRecordsHaystack(ctx context.Context, id string, ownerID string, limit int, cursor string, ...) (*api.LeaderboardRecordList, error)
- func (_m *MockNakamaModule) LeaderboardRecordsList(ctx context.Context, id string, ownerIDs []string, limit int, cursor string, ...) ([]*api.LeaderboardRecord, []*api.LeaderboardRecord, string, string, error)
- func (_m *MockNakamaModule) LeaderboardRecordsListCursorFromRank(id string, rank int64, overrideExpiry int64) (string, error)
- func (_m *MockNakamaModule) LeaderboardsGetId(ctx context.Context, ids []string) ([]*api.Leaderboard, error)
- func (_m *MockNakamaModule) LinkApple(ctx context.Context, userID string, token string) error
- func (_m *MockNakamaModule) LinkCustom(ctx context.Context, userID string, customID string) error
- func (_m *MockNakamaModule) LinkDevice(ctx context.Context, userID string, deviceID string) error
- func (_m *MockNakamaModule) LinkEmail(ctx context.Context, userID string, email string, password string) error
- func (_m *MockNakamaModule) LinkFacebook(ctx context.Context, userID string, username string, token string, ...) error
- func (_m *MockNakamaModule) LinkFacebookInstantGame(ctx context.Context, userID string, signedPlayerInfo string) error
- func (_m *MockNakamaModule) LinkGameCenter(ctx context.Context, userID string, playerID string, bundleID string, ...) error
- func (_m *MockNakamaModule) LinkGoogle(ctx context.Context, userID string, token string) error
- func (_m *MockNakamaModule) LinkSteam(ctx context.Context, userID string, username string, token string, ...) error
- func (_m *MockNakamaModule) MatchCreate(ctx context.Context, module string, params map[string]interface{}) (string, error)
- func (_m *MockNakamaModule) MatchGet(ctx context.Context, id string) (*api.Match, error)
- func (_m *MockNakamaModule) MatchList(ctx context.Context, limit int, authoritative bool, label string, minSize *int, ...) ([]*api.Match, error)
- func (_m *MockNakamaModule) MatchSignal(ctx context.Context, id string, data string) (string, error)
- func (_m *MockNakamaModule) MetricsCounterAdd(name string, tags map[string]string, delta int64)
- func (_m *MockNakamaModule) MetricsGaugeSet(name string, tags map[string]string, value float64)
- func (_m *MockNakamaModule) MetricsTimerRecord(name string, tags map[string]string, value time.Duration)
- func (_m *MockNakamaModule) MultiUpdate(ctx context.Context, accountUpdates []*runtime.AccountUpdate, ...) ([]*api.StorageObjectAck, []*runtime.WalletUpdateResult, error)
- func (_m *MockNakamaModule) NotificationSend(ctx context.Context, userID string, subject string, ...) error
- func (_m *MockNakamaModule) NotificationSendAll(ctx context.Context, subject string, content map[string]interface{}, code int, ...) error
- func (_m *MockNakamaModule) NotificationsDelete(ctx context.Context, notifications []*runtime.NotificationDelete) error
- func (_m *MockNakamaModule) NotificationsSend(ctx context.Context, notifications []*runtime.NotificationSend) error
- func (_m *MockNakamaModule) PurchaseGetByTransactionId(ctx context.Context, transactionID string) (*api.ValidatedPurchase, error)
- func (_m *MockNakamaModule) PurchaseValidateApple(ctx context.Context, userID string, receipt string, persist bool, ...) (*api.ValidatePurchaseResponse, error)
- func (_m *MockNakamaModule) PurchaseValidateFacebookInstant(ctx context.Context, userID string, signedRequest string, persist bool) (*api.ValidatePurchaseResponse, error)
- func (_m *MockNakamaModule) PurchaseValidateGoogle(ctx context.Context, userID string, receipt string, persist bool, ...) (*api.ValidatePurchaseResponse, error)
- func (_m *MockNakamaModule) PurchaseValidateHuawei(ctx context.Context, userID string, signature string, inAppPurchaseData string, ...) (*api.ValidatePurchaseResponse, error)
- func (_m *MockNakamaModule) PurchasesList(ctx context.Context, userID string, limit int, cursor string) (*api.PurchaseList, error)
- func (_m *MockNakamaModule) ReadFile(path string) (*os.File, error)
- func (_m *MockNakamaModule) SessionDisconnect(ctx context.Context, sessionID string, reason ...runtime.PresenceReason) error
- func (_m *MockNakamaModule) SessionLogout(userID string, token string, refreshToken string) error
- func (_m *MockNakamaModule) StorageDelete(ctx context.Context, deletes []*runtime.StorageDelete) error
- func (_m *MockNakamaModule) StorageIndexList(ctx context.Context, callerID string, indexName string, query string, ...) (*api.StorageObjects, error)
- func (_m *MockNakamaModule) StorageList(ctx context.Context, callerID string, userID string, collection string, ...) ([]*api.StorageObject, string, error)
- func (_m *MockNakamaModule) StorageRead(ctx context.Context, reads []*runtime.StorageRead) ([]*api.StorageObject, error)
- func (_m *MockNakamaModule) StorageWrite(ctx context.Context, writes []*runtime.StorageWrite) ([]*api.StorageObjectAck, error)
- func (_m *MockNakamaModule) StreamClose(mode uint8, subject string, subcontext string, label string) error
- func (_m *MockNakamaModule) StreamCount(mode uint8, subject string, subcontext string, label string) (int, error)
- func (_m *MockNakamaModule) StreamSend(mode uint8, subject string, subcontext string, label string, data string, ...) error
- func (_m *MockNakamaModule) StreamSendRaw(mode uint8, subject string, subcontext string, label string, ...) error
- func (_m *MockNakamaModule) StreamUserGet(mode uint8, subject string, subcontext string, label string, userID string, ...) (runtime.PresenceMeta, error)
- func (_m *MockNakamaModule) StreamUserJoin(mode uint8, subject string, subcontext string, label string, userID string, ...) (bool, error)
- func (_m *MockNakamaModule) StreamUserKick(mode uint8, subject string, subcontext string, label string, ...) error
- func (_m *MockNakamaModule) StreamUserLeave(mode uint8, subject string, subcontext string, label string, userID string, ...) error
- func (_m *MockNakamaModule) StreamUserList(mode uint8, subject string, subcontext string, label string, ...) ([]runtime.Presence, error)
- func (_m *MockNakamaModule) StreamUserUpdate(mode uint8, subject string, subcontext string, label string, userID string, ...) error
- func (_m *MockNakamaModule) SubscriptionGetByProductId(ctx context.Context, userID string, productID string) (*api.ValidatedSubscription, error)
- func (_m *MockNakamaModule) SubscriptionValidateApple(ctx context.Context, userID string, receipt string, persist bool, ...) (*api.ValidateSubscriptionResponse, error)
- func (_m *MockNakamaModule) SubscriptionValidateGoogle(ctx context.Context, userID string, receipt string, persist bool, ...) (*api.ValidateSubscriptionResponse, error)
- func (_m *MockNakamaModule) SubscriptionsList(ctx context.Context, userID string, limit int, cursor string) (*api.SubscriptionList, error)
- func (_m *MockNakamaModule) TournamentAddAttempt(ctx context.Context, id string, ownerID string, count int) error
- func (_m *MockNakamaModule) TournamentCreate(ctx context.Context, id string, authoritative bool, sortOrder string, ...) error
- func (_m *MockNakamaModule) TournamentDelete(ctx context.Context, id string) error
- func (_m *MockNakamaModule) TournamentJoin(ctx context.Context, id string, ownerID string, username string) error
- func (_m *MockNakamaModule) TournamentList(ctx context.Context, categoryStart int, categoryEnd int, startTime int, ...) (*api.TournamentList, error)
- func (_m *MockNakamaModule) TournamentRecordDelete(ctx context.Context, id string, ownerID string) error
- func (_m *MockNakamaModule) TournamentRecordWrite(ctx context.Context, id string, ownerID string, username string, score int64, ...) (*api.LeaderboardRecord, error)
- func (_m *MockNakamaModule) TournamentRecordsHaystack(ctx context.Context, id string, ownerID string, limit int, cursor string, ...) (*api.TournamentRecordList, error)
- func (_m *MockNakamaModule) TournamentRecordsList(ctx context.Context, tournamentId string, ownerIDs []string, limit int, ...) ([]*api.LeaderboardRecord, []*api.LeaderboardRecord, string, string, error)
- func (_m *MockNakamaModule) TournamentsGetId(ctx context.Context, tournamentIDs []string) ([]*api.Tournament, error)
- func (_m *MockNakamaModule) UnlinkApple(ctx context.Context, userID string, token string) error
- func (_m *MockNakamaModule) UnlinkCustom(ctx context.Context, userID string, customID string) error
- func (_m *MockNakamaModule) UnlinkDevice(ctx context.Context, userID string, deviceID string) error
- func (_m *MockNakamaModule) UnlinkEmail(ctx context.Context, userID string, email string) error
- func (_m *MockNakamaModule) UnlinkFacebook(ctx context.Context, userID string, token string) error
- func (_m *MockNakamaModule) UnlinkFacebookInstantGame(ctx context.Context, userID string, signedPlayerInfo string) error
- func (_m *MockNakamaModule) UnlinkGameCenter(ctx context.Context, userID string, playerID string, bundleID string, ...) error
- func (_m *MockNakamaModule) UnlinkGoogle(ctx context.Context, userID string, token string) error
- func (_m *MockNakamaModule) UnlinkSteam(ctx context.Context, userID string, token string) error
- func (_m *MockNakamaModule) UserGroupsList(ctx context.Context, userID string, limit int, state *int, cursor string) ([]*api.UserGroupList_UserGroup, string, error)
- func (_m *MockNakamaModule) UsersBanId(ctx context.Context, userIDs []string) error
- func (_m *MockNakamaModule) UsersGetId(ctx context.Context, userIDs []string, facebookIDs []string) ([]*api.User, error)
- func (_m *MockNakamaModule) UsersGetRandom(ctx context.Context, count int) ([]*api.User, error)
- func (_m *MockNakamaModule) UsersGetUsername(ctx context.Context, usernames []string) ([]*api.User, error)
- func (_m *MockNakamaModule) UsersUnbanId(ctx context.Context, userIDs []string) error
- func (_m *MockNakamaModule) WalletLedgerList(ctx context.Context, userID string, limit int, cursor string) ([]runtime.WalletLedgerItem, string, error)
- func (_m *MockNakamaModule) WalletLedgerUpdate(ctx context.Context, itemID string, metadata map[string]interface{}) (runtime.WalletLedgerItem, error)
- func (_m *MockNakamaModule) WalletUpdate(ctx context.Context, userID string, changeset map[string]int64, ...) (map[string]int64, map[string]int64, error)
- func (_m *MockNakamaModule) WalletsUpdate(ctx context.Context, updates []*runtime.WalletUpdate, updateLedger bool) ([]*runtime.WalletUpdateResult, error)
- type MockPresence
- func (_m *MockPresence) GetHidden() bool
- func (_m *MockPresence) GetNodeId() string
- func (_m *MockPresence) GetPersistence() bool
- func (_m *MockPresence) GetReason() runtime.PresenceReason
- func (_m *MockPresence) GetSessionId() string
- func (_m *MockPresence) GetStatus() string
- func (_m *MockPresence) GetUserId() string
- func (_m *MockPresence) GetUsername() string
- type MockPresenceMeta
- type MockSatori
- func (_m *MockSatori) Authenticate(ctx context.Context, id string, ipAddress ...string) error
- func (_m *MockSatori) EventsPublish(ctx context.Context, id string, events []*runtime.Event) error
- func (_m *MockSatori) ExperimentsList(ctx context.Context, id string, names ...string) (*runtime.ExperimentList, error)
- func (_m *MockSatori) FlagsList(ctx context.Context, id string, names ...string) (*runtime.FlagList, error)
- func (_m *MockSatori) LiveEventsList(ctx context.Context, id string, names ...string) (*runtime.LiveEventList, error)
- func (_m *MockSatori) PropertiesGet(ctx context.Context, id string) (*runtime.Properties, error)
- func (_m *MockSatori) PropertiesUpdate(ctx context.Context, id string, properties *runtime.PropertiesUpdate) error
- type MockWalletLedgerItem
- func (_m *MockWalletLedgerItem) GetChangeset() map[string]int64
- func (_m *MockWalletLedgerItem) GetCreateTime() int64
- func (_m *MockWalletLedgerItem) GetID() string
- func (_m *MockWalletLedgerItem) GetMetadata() map[string]interface{}
- func (_m *MockWalletLedgerItem) GetUpdateTime() int64
- func (_m *MockWalletLedgerItem) GetUserID() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFleetManager ¶ added in v1.2.9
MockFleetManager is an autogenerated mock type for the FleetManager type
func NewMockFleetManager ¶ added in v1.2.9
func NewMockFleetManager(t mockConstructorTestingTNewMockFleetManager) *MockFleetManager
NewMockFleetManager creates a new instance of MockFleetManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockFleetManager) Create ¶ added in v1.2.9
func (_m *MockFleetManager) Create(ctx context.Context, maxPlayers int, userIds []string, latencies []runtime.FleetUserLatencies, metadata map[string]interface{}, callback runtime.FmCreateCallbackFn) error
Create provides a mock function with given fields: ctx, maxPlayers, userIds, latencies, metadata, callback
func (*MockFleetManager) Get ¶ added in v1.2.9
func (_m *MockFleetManager) Get(ctx context.Context, id string) (*runtime.InstanceInfo, error)
Get provides a mock function with given fields: ctx, id
type MockFleetManagerInitializer ¶ added in v1.2.9
MockFleetManagerInitializer is an autogenerated mock type for the FleetManagerInitializer type
func NewMockFleetManagerInitializer ¶ added in v1.2.9
func NewMockFleetManagerInitializer(t mockConstructorTestingTNewMockFleetManagerInitializer) *MockFleetManagerInitializer
NewMockFleetManagerInitializer creates a new instance of MockFleetManagerInitializer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockFleetManagerInitializer) Create ¶ added in v1.2.9
func (_m *MockFleetManagerInitializer) Create(ctx context.Context, maxPlayers int, userIds []string, latencies []runtime.FleetUserLatencies, metadata map[string]interface{}, callback runtime.FmCreateCallbackFn) error
Create provides a mock function with given fields: ctx, maxPlayers, userIds, latencies, metadata, callback
func (*MockFleetManagerInitializer) Delete ¶ added in v1.2.9
func (_m *MockFleetManagerInitializer) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*MockFleetManagerInitializer) Get ¶ added in v1.2.9
func (_m *MockFleetManagerInitializer) Get(ctx context.Context, id string) (*runtime.InstanceInfo, error)
Get provides a mock function with given fields: ctx, id
func (*MockFleetManagerInitializer) Init ¶ added in v1.2.9
func (_m *MockFleetManagerInitializer) Init(nk runtime.NakamaModule, callbackHandler runtime.FmCallbackHandler) error
Init provides a mock function with given fields: nk, callbackHandler
func (*MockFleetManagerInitializer) Join ¶ added in v1.2.9
func (_m *MockFleetManagerInitializer) Join(ctx context.Context, id string, userIds []string, metadata map[string]string) (*runtime.JoinInfo, error)
Join provides a mock function with given fields: ctx, id, userIds, metadata
type MockFmCallbackHandler ¶ added in v1.2.9
MockFmCallbackHandler is an autogenerated mock type for the FmCallbackHandler type
func NewMockFmCallbackHandler ¶ added in v1.2.9
func NewMockFmCallbackHandler(t mockConstructorTestingTNewMockFmCallbackHandler) *MockFmCallbackHandler
NewMockFmCallbackHandler creates a new instance of MockFmCallbackHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockFmCallbackHandler) GenerateCallbackId ¶ added in v1.2.9
func (_m *MockFmCallbackHandler) GenerateCallbackId() string
GenerateCallbackId provides a mock function with given fields:
func (*MockFmCallbackHandler) InvokeCallback ¶ added in v1.2.9
func (_m *MockFmCallbackHandler) InvokeCallback(callbackId string, status runtime.FmCreateStatus, instanceInfo *runtime.InstanceInfo, sessionInfo []*runtime.SessionInfo, metadata map[string]interface{}, err error)
InvokeCallback provides a mock function with given fields: callbackId, status, instanceInfo, sessionInfo, metadata, err
func (*MockFmCallbackHandler) SetCallback ¶ added in v1.2.9
func (_m *MockFmCallbackHandler) SetCallback(callbackId string, fn runtime.FmCreateCallbackFn)
SetCallback provides a mock function with given fields: callbackId, fn
type MockFmCreateCallbackFn ¶ added in v1.2.9
MockFmCreateCallbackFn is an autogenerated mock type for the FmCreateCallbackFn type
func NewMockFmCreateCallbackFn ¶ added in v1.2.9
func NewMockFmCreateCallbackFn(t mockConstructorTestingTNewMockFmCreateCallbackFn) *MockFmCreateCallbackFn
NewMockFmCreateCallbackFn creates a new instance of MockFmCreateCallbackFn. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockFmCreateCallbackFn) Execute ¶ added in v1.2.9
func (_m *MockFmCreateCallbackFn) Execute(status runtime.FmCreateStatus, instanceInfo *runtime.InstanceInfo, sessionInfo []*runtime.SessionInfo, metadata map[string]interface{}, err error)
Execute provides a mock function with given fields: status, instanceInfo, sessionInfo, metadata, err
type MockInitializer ¶ added in v1.2.9
MockInitializer is an autogenerated mock type for the Initializer type
func NewMockInitializer ¶ added in v1.2.9
func NewMockInitializer(t mockConstructorTestingTNewMockInitializer) *MockInitializer
NewMockInitializer creates a new instance of MockInitializer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockInitializer) RegisterAfterAddFriends ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterAddFriends(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AddFriendsRequest) error) error
RegisterAfterAddFriends provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterAddGroupUsers ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterAddGroupUsers(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AddGroupUsersRequest) error) error
RegisterAfterAddGroupUsers provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterAuthenticateApple ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterAuthenticateApple(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.Session, *api.AuthenticateAppleRequest) error) error
RegisterAfterAuthenticateApple provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterAuthenticateCustom ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterAuthenticateCustom(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.Session, *api.AuthenticateCustomRequest) error) error
RegisterAfterAuthenticateCustom provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterAuthenticateDevice ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterAuthenticateDevice(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.Session, *api.AuthenticateDeviceRequest) error) error
RegisterAfterAuthenticateDevice provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterAuthenticateEmail ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterAuthenticateEmail(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.Session, *api.AuthenticateEmailRequest) error) error
RegisterAfterAuthenticateEmail provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterAuthenticateFacebook ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterAuthenticateFacebook(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.Session, *api.AuthenticateFacebookRequest) error) error
RegisterAfterAuthenticateFacebook provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterAuthenticateFacebookInstantGame ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterAuthenticateFacebookInstantGame(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.Session, *api.AuthenticateFacebookInstantGameRequest) error) error
RegisterAfterAuthenticateFacebookInstantGame provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterAuthenticateGameCenter ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterAuthenticateGameCenter(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.Session, *api.AuthenticateGameCenterRequest) error) error
RegisterAfterAuthenticateGameCenter provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterAuthenticateGoogle ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterAuthenticateGoogle(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.Session, *api.AuthenticateGoogleRequest) error) error
RegisterAfterAuthenticateGoogle provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterAuthenticateSteam ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterAuthenticateSteam(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.Session, *api.AuthenticateSteamRequest) error) error
RegisterAfterAuthenticateSteam provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterBanGroupUsers ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterBanGroupUsers(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.BanGroupUsersRequest) error) error
RegisterAfterBanGroupUsers provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterBlockFriends ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterBlockFriends(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.BlockFriendsRequest) error) error
RegisterAfterBlockFriends provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterCreateGroup ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterCreateGroup(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.Group, *api.CreateGroupRequest) error) error
RegisterAfterCreateGroup provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterDeleteAccount ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterDeleteAccount(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule) error) error
RegisterAfterDeleteAccount provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterDeleteFriends ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterDeleteFriends(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.DeleteFriendsRequest) error) error
RegisterAfterDeleteFriends provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterDeleteGroup ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterDeleteGroup(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.DeleteGroupRequest) error) error
RegisterAfterDeleteGroup provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterDeleteLeaderboardRecord ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterDeleteLeaderboardRecord(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.DeleteLeaderboardRecordRequest) error) error
RegisterAfterDeleteLeaderboardRecord provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterDeleteNotifications ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterDeleteNotifications(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.DeleteNotificationsRequest) error) error
RegisterAfterDeleteNotifications provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterDeleteStorageObjects ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterDeleteStorageObjects(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.DeleteStorageObjectsRequest) error) error
RegisterAfterDeleteStorageObjects provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterDeleteTournamentRecord ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterDeleteTournamentRecord(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.DeleteTournamentRecordRequest) error) error
RegisterAfterDeleteTournamentRecord provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterDemoteGroupUsers ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterDemoteGroupUsers(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.DemoteGroupUsersRequest) error) error
RegisterAfterDemoteGroupUsers provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterGetAccount ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterGetAccount(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.Account) error) error
RegisterAfterGetAccount provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterGetSubscription ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterGetSubscription(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ValidatedSubscription, *api.GetSubscriptionRequest) error) error
RegisterAfterGetSubscription provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterGetUsers ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterGetUsers(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.Users, *api.GetUsersRequest) error) error
RegisterAfterGetUsers provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterImportFacebookFriends ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterImportFacebookFriends(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ImportFacebookFriendsRequest) error) error
RegisterAfterImportFacebookFriends provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterImportSteamFriends ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterImportSteamFriends(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ImportSteamFriendsRequest) error) error
RegisterAfterImportSteamFriends provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterJoinGroup ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterJoinGroup(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.JoinGroupRequest) error) error
RegisterAfterJoinGroup provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterJoinTournament ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterJoinTournament(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.JoinTournamentRequest) error) error
RegisterAfterJoinTournament provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterKickGroupUsers ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterKickGroupUsers(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.KickGroupUsersRequest) error) error
RegisterAfterKickGroupUsers provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterLeaveGroup ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterLeaveGroup(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.LeaveGroupRequest) error) error
RegisterAfterLeaveGroup provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterLinkApple ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterLinkApple(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountApple) error) error
RegisterAfterLinkApple provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterLinkCustom ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterLinkCustom(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountCustom) error) error
RegisterAfterLinkCustom provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterLinkDevice ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterLinkDevice(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountDevice) error) error
RegisterAfterLinkDevice provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterLinkEmail ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterLinkEmail(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountEmail) error) error
RegisterAfterLinkEmail provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterLinkFacebook ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterLinkFacebook(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.LinkFacebookRequest) error) error
RegisterAfterLinkFacebook provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterLinkFacebookInstantGame ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterLinkFacebookInstantGame(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountFacebookInstantGame) error) error
RegisterAfterLinkFacebookInstantGame provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterLinkGameCenter ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterLinkGameCenter(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountGameCenter) error) error
RegisterAfterLinkGameCenter provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterLinkGoogle ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterLinkGoogle(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountGoogle) error) error
RegisterAfterLinkGoogle provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterLinkSteam ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterLinkSteam(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.LinkSteamRequest) error) error
RegisterAfterLinkSteam provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterListChannelMessages ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterListChannelMessages(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ChannelMessageList, *api.ListChannelMessagesRequest) error) error
RegisterAfterListChannelMessages provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterListFriends ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterListFriends(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.FriendList) error) error
RegisterAfterListFriends provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterListFriendsOfFriends ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterListFriendsOfFriends(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.FriendsOfFriendsList) error) error
RegisterAfterListFriendsOfFriends provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterListGroupUsers ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterListGroupUsers(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.GroupUserList, *api.ListGroupUsersRequest) error) error
RegisterAfterListGroupUsers provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterListGroups ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterListGroups(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.GroupList, *api.ListGroupsRequest) error) error
RegisterAfterListGroups provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterListLeaderboardRecords ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterListLeaderboardRecords(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.LeaderboardRecordList, *api.ListLeaderboardRecordsRequest) error) error
RegisterAfterListLeaderboardRecords provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterListLeaderboardRecordsAroundOwner ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterListLeaderboardRecordsAroundOwner(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.LeaderboardRecordList, *api.ListLeaderboardRecordsAroundOwnerRequest) error) error
RegisterAfterListLeaderboardRecordsAroundOwner provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterListMatches ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterListMatches(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.MatchList, *api.ListMatchesRequest) error) error
RegisterAfterListMatches provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterListNotifications ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterListNotifications(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.NotificationList, *api.ListNotificationsRequest) error) error
RegisterAfterListNotifications provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterListStorageObjects ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterListStorageObjects(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.StorageObjectList, *api.ListStorageObjectsRequest) error) error
RegisterAfterListStorageObjects provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterListSubscriptions ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterListSubscriptions(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.SubscriptionList, *api.ListSubscriptionsRequest) error) error
RegisterAfterListSubscriptions provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterListTournamentRecords ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterListTournamentRecords(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.TournamentRecordList, *api.ListTournamentRecordsRequest) error) error
RegisterAfterListTournamentRecords provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterListTournamentRecordsAroundOwner ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterListTournamentRecordsAroundOwner(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.TournamentRecordList, *api.ListTournamentRecordsAroundOwnerRequest) error) error
RegisterAfterListTournamentRecordsAroundOwner provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterListTournaments ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterListTournaments(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.TournamentList, *api.ListTournamentsRequest) error) error
RegisterAfterListTournaments provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterListUserGroups ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterListUserGroups(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.UserGroupList, *api.ListUserGroupsRequest) error) error
RegisterAfterListUserGroups provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterPromoteGroupUsers ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterPromoteGroupUsers(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.PromoteGroupUsersRequest) error) error
RegisterAfterPromoteGroupUsers provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterReadStorageObjects ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterReadStorageObjects(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.StorageObjects, *api.ReadStorageObjectsRequest) error) error
RegisterAfterReadStorageObjects provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterRt ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterRt(id string, fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *rtapi.Envelope, *rtapi.Envelope) error) error
RegisterAfterRt provides a mock function with given fields: id, fn
func (*MockInitializer) RegisterAfterSessionLogout ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterSessionLogout(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.SessionLogoutRequest) error) error
RegisterAfterSessionLogout provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterSessionRefresh ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterSessionRefresh(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.Session, *api.SessionRefreshRequest) error) error
RegisterAfterSessionRefresh provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterUnlinkApple ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterUnlinkApple(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountApple) error) error
RegisterAfterUnlinkApple provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterUnlinkCustom ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterUnlinkCustom(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountCustom) error) error
RegisterAfterUnlinkCustom provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterUnlinkDevice ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterUnlinkDevice(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountDevice) error) error
RegisterAfterUnlinkDevice provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterUnlinkEmail ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterUnlinkEmail(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountEmail) error) error
RegisterAfterUnlinkEmail provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterUnlinkFacebook ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterUnlinkFacebook(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountFacebook) error) error
RegisterAfterUnlinkFacebook provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterUnlinkFacebookInstantGame ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterUnlinkFacebookInstantGame(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountFacebookInstantGame) error) error
RegisterAfterUnlinkFacebookInstantGame provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterUnlinkGameCenter ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterUnlinkGameCenter(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountGameCenter) error) error
RegisterAfterUnlinkGameCenter provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterUnlinkGoogle ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterUnlinkGoogle(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountGoogle) error) error
RegisterAfterUnlinkGoogle provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterUnlinkSteam ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterUnlinkSteam(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountSteam) error) error
RegisterAfterUnlinkSteam provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterUpdateAccount ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterUpdateAccount(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.UpdateAccountRequest) error) error
RegisterAfterUpdateAccount provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterUpdateGroup ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterUpdateGroup(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.UpdateGroupRequest) error) error
RegisterAfterUpdateGroup provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterValidatePurchaseApple ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterValidatePurchaseApple(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ValidatePurchaseResponse, *api.ValidatePurchaseAppleRequest) error) error
RegisterAfterValidatePurchaseApple provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterValidatePurchaseFacebookInstant ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterValidatePurchaseFacebookInstant(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ValidatePurchaseResponse, *api.ValidatePurchaseFacebookInstantRequest) error) error
RegisterAfterValidatePurchaseFacebookInstant provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterValidatePurchaseGoogle ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterValidatePurchaseGoogle(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ValidatePurchaseResponse, *api.ValidatePurchaseGoogleRequest) error) error
RegisterAfterValidatePurchaseGoogle provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterValidatePurchaseHuawei ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterValidatePurchaseHuawei(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ValidatePurchaseResponse, *api.ValidatePurchaseHuaweiRequest) error) error
RegisterAfterValidatePurchaseHuawei provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterValidateSubscriptionApple ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterValidateSubscriptionApple(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ValidateSubscriptionResponse, *api.ValidateSubscriptionAppleRequest) error) error
RegisterAfterValidateSubscriptionApple provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterValidateSubscriptionGoogle ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterValidateSubscriptionGoogle(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ValidateSubscriptionResponse, *api.ValidateSubscriptionGoogleRequest) error) error
RegisterAfterValidateSubscriptionGoogle provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterWriteLeaderboardRecord ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterWriteLeaderboardRecord(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.LeaderboardRecord, *api.WriteLeaderboardRecordRequest) error) error
RegisterAfterWriteLeaderboardRecord provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterWriteStorageObjects ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterWriteStorageObjects(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.StorageObjectAcks, *api.WriteStorageObjectsRequest) error) error
RegisterAfterWriteStorageObjects provides a mock function with given fields: fn
func (*MockInitializer) RegisterAfterWriteTournamentRecord ¶ added in v1.2.9
func (_m *MockInitializer) RegisterAfterWriteTournamentRecord(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.LeaderboardRecord, *api.WriteTournamentRecordRequest) error) error
RegisterAfterWriteTournamentRecord provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeAddFriends ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeAddFriends(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AddFriendsRequest) (*api.AddFriendsRequest, error)) error
RegisterBeforeAddFriends provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeAddGroupUsers ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeAddGroupUsers(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AddGroupUsersRequest) (*api.AddGroupUsersRequest, error)) error
RegisterBeforeAddGroupUsers provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeAuthenticateApple ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeAuthenticateApple(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AuthenticateAppleRequest) (*api.AuthenticateAppleRequest, error)) error
RegisterBeforeAuthenticateApple provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeAuthenticateCustom ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeAuthenticateCustom(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AuthenticateCustomRequest) (*api.AuthenticateCustomRequest, error)) error
RegisterBeforeAuthenticateCustom provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeAuthenticateDevice ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeAuthenticateDevice(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AuthenticateDeviceRequest) (*api.AuthenticateDeviceRequest, error)) error
RegisterBeforeAuthenticateDevice provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeAuthenticateEmail ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeAuthenticateEmail(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AuthenticateEmailRequest) (*api.AuthenticateEmailRequest, error)) error
RegisterBeforeAuthenticateEmail provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeAuthenticateFacebook ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeAuthenticateFacebook(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AuthenticateFacebookRequest) (*api.AuthenticateFacebookRequest, error)) error
RegisterBeforeAuthenticateFacebook provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeAuthenticateFacebookInstantGame ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeAuthenticateFacebookInstantGame(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AuthenticateFacebookInstantGameRequest) (*api.AuthenticateFacebookInstantGameRequest, error)) error
RegisterBeforeAuthenticateFacebookInstantGame provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeAuthenticateGameCenter ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeAuthenticateGameCenter(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AuthenticateGameCenterRequest) (*api.AuthenticateGameCenterRequest, error)) error
RegisterBeforeAuthenticateGameCenter provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeAuthenticateGoogle ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeAuthenticateGoogle(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AuthenticateGoogleRequest) (*api.AuthenticateGoogleRequest, error)) error
RegisterBeforeAuthenticateGoogle provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeAuthenticateSteam ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeAuthenticateSteam(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AuthenticateSteamRequest) (*api.AuthenticateSteamRequest, error)) error
RegisterBeforeAuthenticateSteam provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeBanGroupUsers ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeBanGroupUsers(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.BanGroupUsersRequest) (*api.BanGroupUsersRequest, error)) error
RegisterBeforeBanGroupUsers provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeBlockFriends ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeBlockFriends(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.BlockFriendsRequest) (*api.BlockFriendsRequest, error)) error
RegisterBeforeBlockFriends provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeCreateGroup ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeCreateGroup(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.CreateGroupRequest) (*api.CreateGroupRequest, error)) error
RegisterBeforeCreateGroup provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeDeleteAccount ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeDeleteAccount(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule) error) error
RegisterBeforeDeleteAccount provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeDeleteFriends ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeDeleteFriends(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.DeleteFriendsRequest) (*api.DeleteFriendsRequest, error)) error
RegisterBeforeDeleteFriends provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeDeleteGroup ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeDeleteGroup(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.DeleteGroupRequest) (*api.DeleteGroupRequest, error)) error
RegisterBeforeDeleteGroup provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeDeleteLeaderboardRecord ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeDeleteLeaderboardRecord(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.DeleteLeaderboardRecordRequest) (*api.DeleteLeaderboardRecordRequest, error)) error
RegisterBeforeDeleteLeaderboardRecord provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeDeleteNotifications ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeDeleteNotifications(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.DeleteNotificationsRequest) (*api.DeleteNotificationsRequest, error)) error
RegisterBeforeDeleteNotifications provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeDeleteStorageObjects ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeDeleteStorageObjects(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.DeleteStorageObjectsRequest) (*api.DeleteStorageObjectsRequest, error)) error
RegisterBeforeDeleteStorageObjects provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeDeleteTournamentRecord ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeDeleteTournamentRecord(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.DeleteTournamentRecordRequest) (*api.DeleteTournamentRecordRequest, error)) error
RegisterBeforeDeleteTournamentRecord provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeDemoteGroupUsers ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeDemoteGroupUsers(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.DemoteGroupUsersRequest) (*api.DemoteGroupUsersRequest, error)) error
RegisterBeforeDemoteGroupUsers provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeGetAccount ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeGetAccount(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule) error) error
RegisterBeforeGetAccount provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeGetSubscription ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeGetSubscription(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.GetSubscriptionRequest) (*api.GetSubscriptionRequest, error)) error
RegisterBeforeGetSubscription provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeGetUsers ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeGetUsers(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.GetUsersRequest) (*api.GetUsersRequest, error)) error
RegisterBeforeGetUsers provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeImportFacebookFriends ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeImportFacebookFriends(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ImportFacebookFriendsRequest) (*api.ImportFacebookFriendsRequest, error)) error
RegisterBeforeImportFacebookFriends provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeImportSteamFriends ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeImportSteamFriends(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ImportSteamFriendsRequest) (*api.ImportSteamFriendsRequest, error)) error
RegisterBeforeImportSteamFriends provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeJoinGroup ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeJoinGroup(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.JoinGroupRequest) (*api.JoinGroupRequest, error)) error
RegisterBeforeJoinGroup provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeJoinTournament ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeJoinTournament(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.JoinTournamentRequest) (*api.JoinTournamentRequest, error)) error
RegisterBeforeJoinTournament provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeKickGroupUsers ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeKickGroupUsers(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.KickGroupUsersRequest) (*api.KickGroupUsersRequest, error)) error
RegisterBeforeKickGroupUsers provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeLeaveGroup ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeLeaveGroup(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.LeaveGroupRequest) (*api.LeaveGroupRequest, error)) error
RegisterBeforeLeaveGroup provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeLinkApple ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeLinkApple(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountApple) (*api.AccountApple, error)) error
RegisterBeforeLinkApple provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeLinkCustom ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeLinkCustom(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountCustom) (*api.AccountCustom, error)) error
RegisterBeforeLinkCustom provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeLinkDevice ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeLinkDevice(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountDevice) (*api.AccountDevice, error)) error
RegisterBeforeLinkDevice provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeLinkEmail ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeLinkEmail(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountEmail) (*api.AccountEmail, error)) error
RegisterBeforeLinkEmail provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeLinkFacebook ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeLinkFacebook(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.LinkFacebookRequest) (*api.LinkFacebookRequest, error)) error
RegisterBeforeLinkFacebook provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeLinkFacebookInstantGame ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeLinkFacebookInstantGame(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountFacebookInstantGame) (*api.AccountFacebookInstantGame, error)) error
RegisterBeforeLinkFacebookInstantGame provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeLinkGameCenter ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeLinkGameCenter(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountGameCenter) (*api.AccountGameCenter, error)) error
RegisterBeforeLinkGameCenter provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeLinkGoogle ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeLinkGoogle(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountGoogle) (*api.AccountGoogle, error)) error
RegisterBeforeLinkGoogle provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeLinkSteam ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeLinkSteam(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.LinkSteamRequest) (*api.LinkSteamRequest, error)) error
RegisterBeforeLinkSteam provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeListChannelMessages ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeListChannelMessages(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ListChannelMessagesRequest) (*api.ListChannelMessagesRequest, error)) error
RegisterBeforeListChannelMessages provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeListFriends ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeListFriends(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ListFriendsRequest) (*api.ListFriendsRequest, error)) error
RegisterBeforeListFriends provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeListFriendsOfFriends ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeListFriendsOfFriends(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ListFriendsOfFriendsRequest) (*api.ListFriendsOfFriendsRequest, error)) error
RegisterBeforeListFriendsOfFriends provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeListGroupUsers ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeListGroupUsers(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ListGroupUsersRequest) (*api.ListGroupUsersRequest, error)) error
RegisterBeforeListGroupUsers provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeListGroups ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeListGroups(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ListGroupsRequest) (*api.ListGroupsRequest, error)) error
RegisterBeforeListGroups provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeListLeaderboardRecords ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeListLeaderboardRecords(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ListLeaderboardRecordsRequest) (*api.ListLeaderboardRecordsRequest, error)) error
RegisterBeforeListLeaderboardRecords provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeListLeaderboardRecordsAroundOwner ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeListLeaderboardRecordsAroundOwner(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ListLeaderboardRecordsAroundOwnerRequest) (*api.ListLeaderboardRecordsAroundOwnerRequest, error)) error
RegisterBeforeListLeaderboardRecordsAroundOwner provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeListMatches ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeListMatches(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ListMatchesRequest) (*api.ListMatchesRequest, error)) error
RegisterBeforeListMatches provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeListNotifications ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeListNotifications(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ListNotificationsRequest) (*api.ListNotificationsRequest, error)) error
RegisterBeforeListNotifications provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeListStorageObjects ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeListStorageObjects(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ListStorageObjectsRequest) (*api.ListStorageObjectsRequest, error)) error
RegisterBeforeListStorageObjects provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeListSubscriptions ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeListSubscriptions(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ListSubscriptionsRequest) (*api.ListSubscriptionsRequest, error)) error
RegisterBeforeListSubscriptions provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeListTournamentRecords ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeListTournamentRecords(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ListTournamentRecordsRequest) (*api.ListTournamentRecordsRequest, error)) error
RegisterBeforeListTournamentRecords provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeListTournamentRecordsAroundOwner ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeListTournamentRecordsAroundOwner(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ListTournamentRecordsAroundOwnerRequest) (*api.ListTournamentRecordsAroundOwnerRequest, error)) error
RegisterBeforeListTournamentRecordsAroundOwner provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeListTournaments ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeListTournaments(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ListTournamentsRequest) (*api.ListTournamentsRequest, error)) error
RegisterBeforeListTournaments provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeListUserGroups ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeListUserGroups(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ListUserGroupsRequest) (*api.ListUserGroupsRequest, error)) error
RegisterBeforeListUserGroups provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforePromoteGroupUsers ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforePromoteGroupUsers(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.PromoteGroupUsersRequest) (*api.PromoteGroupUsersRequest, error)) error
RegisterBeforePromoteGroupUsers provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeReadStorageObjects ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeReadStorageObjects(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ReadStorageObjectsRequest) (*api.ReadStorageObjectsRequest, error)) error
RegisterBeforeReadStorageObjects provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeRt ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeRt(id string, fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *rtapi.Envelope) (*rtapi.Envelope, error)) error
RegisterBeforeRt provides a mock function with given fields: id, fn
func (*MockInitializer) RegisterBeforeSessionLogout ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeSessionLogout(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.SessionLogoutRequest) (*api.SessionLogoutRequest, error)) error
RegisterBeforeSessionLogout provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeSessionRefresh ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeSessionRefresh(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.SessionRefreshRequest) (*api.SessionRefreshRequest, error)) error
RegisterBeforeSessionRefresh provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeUnlinkApple ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeUnlinkApple(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountApple) (*api.AccountApple, error)) error
RegisterBeforeUnlinkApple provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeUnlinkCustom ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeUnlinkCustom(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountCustom) (*api.AccountCustom, error)) error
RegisterBeforeUnlinkCustom provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeUnlinkDevice ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeUnlinkDevice(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountDevice) (*api.AccountDevice, error)) error
RegisterBeforeUnlinkDevice provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeUnlinkEmail ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeUnlinkEmail(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountEmail) (*api.AccountEmail, error)) error
RegisterBeforeUnlinkEmail provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeUnlinkFacebook ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeUnlinkFacebook(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountFacebook) (*api.AccountFacebook, error)) error
RegisterBeforeUnlinkFacebook provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeUnlinkFacebookInstantGame ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeUnlinkFacebookInstantGame(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountFacebookInstantGame) (*api.AccountFacebookInstantGame, error)) error
RegisterBeforeUnlinkFacebookInstantGame provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeUnlinkGameCenter ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeUnlinkGameCenter(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountGameCenter) (*api.AccountGameCenter, error)) error
RegisterBeforeUnlinkGameCenter provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeUnlinkGoogle ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeUnlinkGoogle(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountGoogle) (*api.AccountGoogle, error)) error
RegisterBeforeUnlinkGoogle provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeUnlinkSteam ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeUnlinkSteam(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.AccountSteam) (*api.AccountSteam, error)) error
RegisterBeforeUnlinkSteam provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeUpdateAccount ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeUpdateAccount(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.UpdateAccountRequest) (*api.UpdateAccountRequest, error)) error
RegisterBeforeUpdateAccount provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeUpdateGroup ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeUpdateGroup(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.UpdateGroupRequest) (*api.UpdateGroupRequest, error)) error
RegisterBeforeUpdateGroup provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeValidatePurchaseApple ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeValidatePurchaseApple(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ValidatePurchaseAppleRequest) (*api.ValidatePurchaseAppleRequest, error)) error
RegisterBeforeValidatePurchaseApple provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeValidatePurchaseFacebookInstant ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeValidatePurchaseFacebookInstant(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ValidatePurchaseFacebookInstantRequest) (*api.ValidatePurchaseFacebookInstantRequest, error)) error
RegisterBeforeValidatePurchaseFacebookInstant provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeValidatePurchaseGoogle ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeValidatePurchaseGoogle(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ValidatePurchaseGoogleRequest) (*api.ValidatePurchaseGoogleRequest, error)) error
RegisterBeforeValidatePurchaseGoogle provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeValidatePurchaseHuawei ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeValidatePurchaseHuawei(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ValidatePurchaseHuaweiRequest) (*api.ValidatePurchaseHuaweiRequest, error)) error
RegisterBeforeValidatePurchaseHuawei provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeValidateSubscriptionApple ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeValidateSubscriptionApple(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ValidateSubscriptionAppleRequest) (*api.ValidateSubscriptionAppleRequest, error)) error
RegisterBeforeValidateSubscriptionApple provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeValidateSubscriptionGoogle ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeValidateSubscriptionGoogle(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ValidateSubscriptionGoogleRequest) (*api.ValidateSubscriptionGoogleRequest, error)) error
RegisterBeforeValidateSubscriptionGoogle provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeWriteLeaderboardRecord ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeWriteLeaderboardRecord(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.WriteLeaderboardRecordRequest) (*api.WriteLeaderboardRecordRequest, error)) error
RegisterBeforeWriteLeaderboardRecord provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeWriteStorageObjects ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeWriteStorageObjects(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.WriteStorageObjectsRequest) (*api.WriteStorageObjectsRequest, error)) error
RegisterBeforeWriteStorageObjects provides a mock function with given fields: fn
func (*MockInitializer) RegisterBeforeWriteTournamentRecord ¶ added in v1.2.9
func (_m *MockInitializer) RegisterBeforeWriteTournamentRecord(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.WriteTournamentRecordRequest) (*api.WriteTournamentRecordRequest, error)) error
RegisterBeforeWriteTournamentRecord provides a mock function with given fields: fn
func (*MockInitializer) RegisterEvent ¶ added in v1.2.9
func (_m *MockInitializer) RegisterEvent(fn func(context.Context, runtime.Logger, *api.Event)) error
RegisterEvent provides a mock function with given fields: fn
func (*MockInitializer) RegisterEventSessionEnd ¶ added in v1.2.9
func (_m *MockInitializer) RegisterEventSessionEnd(fn func(context.Context, runtime.Logger, *api.Event)) error
RegisterEventSessionEnd provides a mock function with given fields: fn
func (*MockInitializer) RegisterEventSessionStart ¶ added in v1.2.9
func (_m *MockInitializer) RegisterEventSessionStart(fn func(context.Context, runtime.Logger, *api.Event)) error
RegisterEventSessionStart provides a mock function with given fields: fn
func (*MockInitializer) RegisterFleetManager ¶ added in v1.2.9
func (_m *MockInitializer) RegisterFleetManager(fleetManagerInit runtime.FleetManagerInitializer) error
RegisterFleetManager provides a mock function with given fields: fleetManagerInit
func (*MockInitializer) RegisterLeaderboardReset ¶ added in v1.2.9
func (_m *MockInitializer) RegisterLeaderboardReset(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.Leaderboard, int64) error) error
RegisterLeaderboardReset provides a mock function with given fields: fn
func (*MockInitializer) RegisterMatch ¶ added in v1.2.9
func (_m *MockInitializer) RegisterMatch(name string, fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule) (runtime.Match, error)) error
RegisterMatch provides a mock function with given fields: name, fn
func (*MockInitializer) RegisterMatchmakerMatched ¶ added in v1.2.9
func (_m *MockInitializer) RegisterMatchmakerMatched(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, []runtime.MatchmakerEntry) (string, error)) error
RegisterMatchmakerMatched provides a mock function with given fields: fn
func (*MockInitializer) RegisterMatchmakerOverride ¶ added in v1.2.9
func (_m *MockInitializer) RegisterMatchmakerOverride(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, [][]runtime.MatchmakerEntry) [][]runtime.MatchmakerEntry) error
RegisterMatchmakerOverride provides a mock function with given fields: fn
func (*MockInitializer) RegisterPurchaseNotificationApple ¶ added in v1.2.9
func (_m *MockInitializer) RegisterPurchaseNotificationApple(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ValidatedPurchase, string) error) error
RegisterPurchaseNotificationApple provides a mock function with given fields: fn
func (*MockInitializer) RegisterPurchaseNotificationGoogle ¶ added in v1.2.9
func (_m *MockInitializer) RegisterPurchaseNotificationGoogle(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ValidatedPurchase, string) error) error
RegisterPurchaseNotificationGoogle provides a mock function with given fields: fn
func (*MockInitializer) RegisterRpc ¶ added in v1.2.9
func (_m *MockInitializer) RegisterRpc(id string, fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, string) (string, error)) error
RegisterRpc provides a mock function with given fields: id, fn
func (*MockInitializer) RegisterShutdown ¶ added in v1.2.9
func (_m *MockInitializer) RegisterShutdown(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule)) error
RegisterShutdown provides a mock function with given fields: fn
func (*MockInitializer) RegisterStorageIndex ¶ added in v1.2.9
func (_m *MockInitializer) RegisterStorageIndex(name string, collection string, key string, fields []string, sortableFields []string, maxEntries int, indexOnly bool) error
RegisterStorageIndex provides a mock function with given fields: name, collection, key, fields, sortableFields, maxEntries, indexOnly
func (*MockInitializer) RegisterStorageIndexFilter ¶ added in v1.2.9
func (_m *MockInitializer) RegisterStorageIndexFilter(indexName string, fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *runtime.StorageWrite) bool) error
RegisterStorageIndexFilter provides a mock function with given fields: indexName, fn
func (*MockInitializer) RegisterSubscriptionNotificationApple ¶ added in v1.2.9
func (_m *MockInitializer) RegisterSubscriptionNotificationApple(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ValidatedSubscription, string) error) error
RegisterSubscriptionNotificationApple provides a mock function with given fields: fn
func (*MockInitializer) RegisterSubscriptionNotificationGoogle ¶ added in v1.2.9
func (_m *MockInitializer) RegisterSubscriptionNotificationGoogle(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.ValidatedSubscription, string) error) error
RegisterSubscriptionNotificationGoogle provides a mock function with given fields: fn
func (*MockInitializer) RegisterTournamentEnd ¶ added in v1.2.9
func (_m *MockInitializer) RegisterTournamentEnd(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.Tournament, int64, int64) error) error
RegisterTournamentEnd provides a mock function with given fields: fn
func (*MockInitializer) RegisterTournamentReset ¶ added in v1.2.9
func (_m *MockInitializer) RegisterTournamentReset(fn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.Tournament, int64, int64) error) error
RegisterTournamentReset provides a mock function with given fields: fn
type MockLogger ¶ added in v1.2.9
MockLogger is an autogenerated mock type for the Logger type
func NewMockLogger ¶ added in v1.2.9
func NewMockLogger(t mockConstructorTestingTNewMockLogger) *MockLogger
NewMockLogger creates a new instance of MockLogger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockLogger) Debug ¶ added in v1.2.9
func (_m *MockLogger) Debug(format string, v ...interface{})
Debug provides a mock function with given fields: format, v
func (*MockLogger) Error ¶ added in v1.2.9
func (_m *MockLogger) Error(format string, v ...interface{})
Error provides a mock function with given fields: format, v
func (*MockLogger) Fields ¶ added in v1.2.9
func (_m *MockLogger) Fields() map[string]interface{}
Fields provides a mock function with given fields:
func (*MockLogger) Info ¶ added in v1.2.9
func (_m *MockLogger) Info(format string, v ...interface{})
Info provides a mock function with given fields: format, v
func (*MockLogger) Warn ¶ added in v1.2.9
func (_m *MockLogger) Warn(format string, v ...interface{})
Warn provides a mock function with given fields: format, v
func (*MockLogger) WithField ¶ added in v1.2.9
func (_m *MockLogger) WithField(key string, v interface{}) runtime.Logger
WithField provides a mock function with given fields: key, v
func (*MockLogger) WithFields ¶ added in v1.2.9
func (_m *MockLogger) WithFields(fields map[string]interface{}) runtime.Logger
WithFields provides a mock function with given fields: fields
type MockMatch ¶ added in v1.2.9
MockMatch is an autogenerated mock type for the Match type
func NewMockMatch ¶ added in v1.2.9
func NewMockMatch(t mockConstructorTestingTNewMockMatch) *MockMatch
NewMockMatch creates a new instance of MockMatch. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockMatch) MatchInit ¶ added in v1.2.9
func (_m *MockMatch) MatchInit(ctx context.Context, logger runtime.Logger, db *sql.DB, nk runtime.NakamaModule, params map[string]interface{}) (interface{}, int, string)
MatchInit provides a mock function with given fields: ctx, logger, db, nk, params
func (*MockMatch) MatchJoin ¶ added in v1.2.9
func (_m *MockMatch) MatchJoin(ctx context.Context, logger runtime.Logger, db *sql.DB, nk runtime.NakamaModule, dispatcher runtime.MatchDispatcher, tick int64, state interface{}, presences []runtime.Presence) interface{}
MatchJoin provides a mock function with given fields: ctx, logger, db, nk, dispatcher, tick, state, presences
func (*MockMatch) MatchJoinAttempt ¶ added in v1.2.9
func (_m *MockMatch) MatchJoinAttempt(ctx context.Context, logger runtime.Logger, db *sql.DB, nk runtime.NakamaModule, dispatcher runtime.MatchDispatcher, tick int64, state interface{}, presence runtime.Presence, metadata map[string]string) (interface{}, bool, string)
MatchJoinAttempt provides a mock function with given fields: ctx, logger, db, nk, dispatcher, tick, state, presence, metadata
func (*MockMatch) MatchLeave ¶ added in v1.2.9
func (_m *MockMatch) MatchLeave(ctx context.Context, logger runtime.Logger, db *sql.DB, nk runtime.NakamaModule, dispatcher runtime.MatchDispatcher, tick int64, state interface{}, presences []runtime.Presence) interface{}
MatchLeave provides a mock function with given fields: ctx, logger, db, nk, dispatcher, tick, state, presences
func (*MockMatch) MatchLoop ¶ added in v1.2.9
func (_m *MockMatch) MatchLoop(ctx context.Context, logger runtime.Logger, db *sql.DB, nk runtime.NakamaModule, dispatcher runtime.MatchDispatcher, tick int64, state interface{}, messages []runtime.MatchData) interface{}
MatchLoop provides a mock function with given fields: ctx, logger, db, nk, dispatcher, tick, state, messages
func (*MockMatch) MatchSignal ¶ added in v1.2.9
func (_m *MockMatch) MatchSignal(ctx context.Context, logger runtime.Logger, db *sql.DB, nk runtime.NakamaModule, dispatcher runtime.MatchDispatcher, tick int64, state interface{}, data string) (interface{}, string)
MatchSignal provides a mock function with given fields: ctx, logger, db, nk, dispatcher, tick, state, data
func (*MockMatch) MatchTerminate ¶ added in v1.2.9
func (_m *MockMatch) MatchTerminate(ctx context.Context, logger runtime.Logger, db *sql.DB, nk runtime.NakamaModule, dispatcher runtime.MatchDispatcher, tick int64, state interface{}, graceSeconds int) interface{}
MatchTerminate provides a mock function with given fields: ctx, logger, db, nk, dispatcher, tick, state, graceSeconds
type MockMatchData ¶ added in v1.2.9
MockMatchData is an autogenerated mock type for the MatchData type
func NewMockMatchData ¶ added in v1.2.9
func NewMockMatchData(t mockConstructorTestingTNewMockMatchData) *MockMatchData
NewMockMatchData creates a new instance of MockMatchData. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockMatchData) GetData ¶ added in v1.2.9
func (_m *MockMatchData) GetData() []byte
GetData provides a mock function with given fields:
func (*MockMatchData) GetHidden ¶ added in v1.2.9
func (_m *MockMatchData) GetHidden() bool
GetHidden provides a mock function with given fields:
func (*MockMatchData) GetNodeId ¶ added in v1.2.9
func (_m *MockMatchData) GetNodeId() string
GetNodeId provides a mock function with given fields:
func (*MockMatchData) GetOpCode ¶ added in v1.2.9
func (_m *MockMatchData) GetOpCode() int64
GetOpCode provides a mock function with given fields:
func (*MockMatchData) GetPersistence ¶ added in v1.2.9
func (_m *MockMatchData) GetPersistence() bool
GetPersistence provides a mock function with given fields:
func (*MockMatchData) GetReason ¶ added in v1.2.9
func (_m *MockMatchData) GetReason() runtime.PresenceReason
GetReason provides a mock function with given fields:
func (*MockMatchData) GetReceiveTime ¶ added in v1.2.9
func (_m *MockMatchData) GetReceiveTime() int64
GetReceiveTime provides a mock function with given fields:
func (*MockMatchData) GetReliable ¶ added in v1.2.9
func (_m *MockMatchData) GetReliable() bool
GetReliable provides a mock function with given fields:
func (*MockMatchData) GetSessionId ¶ added in v1.2.9
func (_m *MockMatchData) GetSessionId() string
GetSessionId provides a mock function with given fields:
func (*MockMatchData) GetStatus ¶ added in v1.2.9
func (_m *MockMatchData) GetStatus() string
GetStatus provides a mock function with given fields:
func (*MockMatchData) GetUserId ¶ added in v1.2.9
func (_m *MockMatchData) GetUserId() string
GetUserId provides a mock function with given fields:
func (*MockMatchData) GetUsername ¶ added in v1.2.9
func (_m *MockMatchData) GetUsername() string
GetUsername provides a mock function with given fields:
type MockMatchDispatcher ¶ added in v1.2.9
MockMatchDispatcher is an autogenerated mock type for the MatchDispatcher type
func NewMockMatchDispatcher ¶ added in v1.2.9
func NewMockMatchDispatcher(t mockConstructorTestingTNewMockMatchDispatcher) *MockMatchDispatcher
NewMockMatchDispatcher creates a new instance of MockMatchDispatcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockMatchDispatcher) BroadcastMessage ¶ added in v1.2.9
func (_m *MockMatchDispatcher) BroadcastMessage(opCode int64, data []byte, presences []runtime.Presence, sender runtime.Presence, reliable bool) error
BroadcastMessage provides a mock function with given fields: opCode, data, presences, sender, reliable
func (*MockMatchDispatcher) BroadcastMessageDeferred ¶ added in v1.2.9
func (_m *MockMatchDispatcher) BroadcastMessageDeferred(opCode int64, data []byte, presences []runtime.Presence, sender runtime.Presence, reliable bool) error
BroadcastMessageDeferred provides a mock function with given fields: opCode, data, presences, sender, reliable
func (*MockMatchDispatcher) MatchKick ¶ added in v1.2.9
func (_m *MockMatchDispatcher) MatchKick(presences []runtime.Presence) error
MatchKick provides a mock function with given fields: presences
func (*MockMatchDispatcher) MatchLabelUpdate ¶ added in v1.2.9
func (_m *MockMatchDispatcher) MatchLabelUpdate(label string) error
MatchLabelUpdate provides a mock function with given fields: label
type MockMatchmakerEntry ¶ added in v1.2.9
MockMatchmakerEntry is an autogenerated mock type for the MatchmakerEntry type
func NewMockMatchmakerEntry ¶ added in v1.2.9
func NewMockMatchmakerEntry(t mockConstructorTestingTNewMockMatchmakerEntry) *MockMatchmakerEntry
NewMockMatchmakerEntry creates a new instance of MockMatchmakerEntry. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockMatchmakerEntry) GetPartyId ¶ added in v1.2.9
func (_m *MockMatchmakerEntry) GetPartyId() string
GetPartyId provides a mock function with given fields:
func (*MockMatchmakerEntry) GetPresence ¶ added in v1.2.9
func (_m *MockMatchmakerEntry) GetPresence() runtime.Presence
GetPresence provides a mock function with given fields:
func (*MockMatchmakerEntry) GetProperties ¶ added in v1.2.9
func (_m *MockMatchmakerEntry) GetProperties() map[string]interface{}
GetProperties provides a mock function with given fields:
func (*MockMatchmakerEntry) GetTicket ¶ added in v1.2.9
func (_m *MockMatchmakerEntry) GetTicket() string
GetTicket provides a mock function with given fields:
type MockNakamaModule ¶ added in v1.2.9
MockNakamaModule is an autogenerated mock type for the NakamaModule type
func NewMockNakamaModule ¶ added in v1.2.9
func NewMockNakamaModule(t mockConstructorTestingTNewMockNakamaModule) *MockNakamaModule
NewMockNakamaModule creates a new instance of MockNakamaModule. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockNakamaModule) AccountDeleteId ¶ added in v1.2.9
func (_m *MockNakamaModule) AccountDeleteId(ctx context.Context, userID string, recorded bool) error
AccountDeleteId provides a mock function with given fields: ctx, userID, recorded
func (*MockNakamaModule) AccountExportId ¶ added in v1.2.9
AccountExportId provides a mock function with given fields: ctx, userID
func (*MockNakamaModule) AccountGetId ¶ added in v1.2.9
AccountGetId provides a mock function with given fields: ctx, userID
func (*MockNakamaModule) AccountUpdateId ¶ added in v1.2.9
func (_m *MockNakamaModule) AccountUpdateId(ctx context.Context, userID string, username string, metadata map[string]interface{}, displayName string, timezone string, location string, langTag string, avatarUrl string) error
AccountUpdateId provides a mock function with given fields: ctx, userID, username, metadata, displayName, timezone, location, langTag, avatarUrl
func (*MockNakamaModule) AccountsGetId ¶ added in v1.2.9
func (_m *MockNakamaModule) AccountsGetId(ctx context.Context, userIDs []string) ([]*api.Account, error)
AccountsGetId provides a mock function with given fields: ctx, userIDs
func (*MockNakamaModule) AuthenticateApple ¶ added in v1.2.9
func (_m *MockNakamaModule) AuthenticateApple(ctx context.Context, token string, username string, create bool) (string, string, bool, error)
AuthenticateApple provides a mock function with given fields: ctx, token, username, create
func (*MockNakamaModule) AuthenticateCustom ¶ added in v1.2.9
func (_m *MockNakamaModule) AuthenticateCustom(ctx context.Context, id string, username string, create bool) (string, string, bool, error)
AuthenticateCustom provides a mock function with given fields: ctx, id, username, create
func (*MockNakamaModule) AuthenticateDevice ¶ added in v1.2.9
func (_m *MockNakamaModule) AuthenticateDevice(ctx context.Context, id string, username string, create bool) (string, string, bool, error)
AuthenticateDevice provides a mock function with given fields: ctx, id, username, create
func (*MockNakamaModule) AuthenticateEmail ¶ added in v1.2.9
func (_m *MockNakamaModule) AuthenticateEmail(ctx context.Context, email string, password string, username string, create bool) (string, string, bool, error)
AuthenticateEmail provides a mock function with given fields: ctx, email, password, username, create
func (*MockNakamaModule) AuthenticateFacebook ¶ added in v1.2.9
func (_m *MockNakamaModule) AuthenticateFacebook(ctx context.Context, token string, importFriends bool, username string, create bool) (string, string, bool, error)
AuthenticateFacebook provides a mock function with given fields: ctx, token, importFriends, username, create
func (*MockNakamaModule) AuthenticateFacebookInstantGame ¶ added in v1.2.9
func (_m *MockNakamaModule) AuthenticateFacebookInstantGame(ctx context.Context, signedPlayerInfo string, username string, create bool) (string, string, bool, error)
AuthenticateFacebookInstantGame provides a mock function with given fields: ctx, signedPlayerInfo, username, create
func (*MockNakamaModule) AuthenticateGameCenter ¶ added in v1.2.9
func (_m *MockNakamaModule) AuthenticateGameCenter(ctx context.Context, playerID string, bundleID string, timestamp int64, salt string, signature string, publicKeyUrl string, username string, create bool) (string, string, bool, error)
AuthenticateGameCenter provides a mock function with given fields: ctx, playerID, bundleID, timestamp, salt, signature, publicKeyUrl, username, create
func (*MockNakamaModule) AuthenticateGoogle ¶ added in v1.2.9
func (_m *MockNakamaModule) AuthenticateGoogle(ctx context.Context, token string, username string, create bool) (string, string, bool, error)
AuthenticateGoogle provides a mock function with given fields: ctx, token, username, create
func (*MockNakamaModule) AuthenticateSteam ¶ added in v1.2.9
func (_m *MockNakamaModule) AuthenticateSteam(ctx context.Context, token string, username string, create bool) (string, string, bool, error)
AuthenticateSteam provides a mock function with given fields: ctx, token, username, create
func (*MockNakamaModule) AuthenticateTokenGenerate ¶ added in v1.2.9
func (_m *MockNakamaModule) AuthenticateTokenGenerate(userID string, username string, exp int64, vars map[string]string) (string, int64, error)
AuthenticateTokenGenerate provides a mock function with given fields: userID, username, exp, vars
func (*MockNakamaModule) ChannelIdBuild ¶ added in v1.2.9
func (_m *MockNakamaModule) ChannelIdBuild(ctx context.Context, sender string, target string, chanType runtime.ChannelType) (string, error)
ChannelIdBuild provides a mock function with given fields: ctx, sender, target, chanType
func (*MockNakamaModule) ChannelMessageRemove ¶ added in v1.2.9
func (_m *MockNakamaModule) ChannelMessageRemove(ctx context.Context, channelId string, messageId string, senderId string, senderUsername string, persist bool) (*rtapi.ChannelMessageAck, error)
ChannelMessageRemove provides a mock function with given fields: ctx, channelId, messageId, senderId, senderUsername, persist
func (*MockNakamaModule) ChannelMessageSend ¶ added in v1.2.9
func (_m *MockNakamaModule) ChannelMessageSend(ctx context.Context, channelID string, content map[string]interface{}, senderId string, senderUsername string, persist bool) (*rtapi.ChannelMessageAck, error)
ChannelMessageSend provides a mock function with given fields: ctx, channelID, content, senderId, senderUsername, persist
func (*MockNakamaModule) ChannelMessageUpdate ¶ added in v1.2.9
func (_m *MockNakamaModule) ChannelMessageUpdate(ctx context.Context, channelID string, messageID string, content map[string]interface{}, senderId string, senderUsername string, persist bool) (*rtapi.ChannelMessageAck, error)
ChannelMessageUpdate provides a mock function with given fields: ctx, channelID, messageID, content, senderId, senderUsername, persist
func (*MockNakamaModule) ChannelMessagesList ¶ added in v1.2.9
func (_m *MockNakamaModule) ChannelMessagesList(ctx context.Context, channelId string, limit int, forward bool, cursor string) ([]*api.ChannelMessage, string, string, error)
ChannelMessagesList provides a mock function with given fields: ctx, channelId, limit, forward, cursor
func (*MockNakamaModule) CronNext ¶ added in v1.2.9
func (_m *MockNakamaModule) CronNext(expression string, timestamp int64) (int64, error)
CronNext provides a mock function with given fields: expression, timestamp
func (*MockNakamaModule) CronPrev ¶ added in v1.2.9
func (_m *MockNakamaModule) CronPrev(expression string, timestamp int64) (int64, error)
CronPrev provides a mock function with given fields: expression, timestamp
func (*MockNakamaModule) Event ¶ added in v1.2.9
Event provides a mock function with given fields: ctx, evt
func (*MockNakamaModule) FriendsAdd ¶ added in v1.2.9
func (_m *MockNakamaModule) FriendsAdd(ctx context.Context, userID string, username string, ids []string, usernames []string) error
FriendsAdd provides a mock function with given fields: ctx, userID, username, ids, usernames
func (*MockNakamaModule) FriendsBlock ¶ added in v1.2.9
func (_m *MockNakamaModule) FriendsBlock(ctx context.Context, userID string, username string, ids []string, usernames []string) error
FriendsBlock provides a mock function with given fields: ctx, userID, username, ids, usernames
func (*MockNakamaModule) FriendsDelete ¶ added in v1.2.9
func (_m *MockNakamaModule) FriendsDelete(ctx context.Context, userID string, username string, ids []string, usernames []string) error
FriendsDelete provides a mock function with given fields: ctx, userID, username, ids, usernames
func (*MockNakamaModule) FriendsList ¶ added in v1.2.9
func (_m *MockNakamaModule) FriendsList(ctx context.Context, userID string, limit int, state *int, cursor string) ([]*api.Friend, string, error)
FriendsList provides a mock function with given fields: ctx, userID, limit, state, cursor
func (*MockNakamaModule) FriendsOfFriendsList ¶ added in v1.2.9
func (_m *MockNakamaModule) FriendsOfFriendsList(ctx context.Context, userID string, limit int, cursor string) ([]*api.FriendsOfFriendsList_FriendOfFriend, string, error)
FriendsOfFriendsList provides a mock function with given fields: ctx, userID, limit, cursor
func (*MockNakamaModule) GetFleetManager ¶ added in v1.2.9
func (_m *MockNakamaModule) GetFleetManager() runtime.FleetManager
GetFleetManager provides a mock function with given fields:
func (*MockNakamaModule) GetSatori ¶ added in v1.2.9
func (_m *MockNakamaModule) GetSatori() runtime.Satori
GetSatori provides a mock function with given fields:
func (*MockNakamaModule) GroupCreate ¶ added in v1.2.9
func (_m *MockNakamaModule) GroupCreate(ctx context.Context, userID string, name string, creatorID string, langTag string, description string, avatarUrl string, open bool, metadata map[string]interface{}, maxCount int) (*api.Group, error)
GroupCreate provides a mock function with given fields: ctx, userID, name, creatorID, langTag, description, avatarUrl, open, metadata, maxCount
func (*MockNakamaModule) GroupDelete ¶ added in v1.2.9
func (_m *MockNakamaModule) GroupDelete(ctx context.Context, id string) error
GroupDelete provides a mock function with given fields: ctx, id
func (*MockNakamaModule) GroupUpdate ¶ added in v1.2.9
func (_m *MockNakamaModule) GroupUpdate(ctx context.Context, id string, userID string, name string, creatorID string, langTag string, description string, avatarUrl string, open bool, metadata map[string]interface{}, maxCount int) error
GroupUpdate provides a mock function with given fields: ctx, id, userID, name, creatorID, langTag, description, avatarUrl, open, metadata, maxCount
func (*MockNakamaModule) GroupUserJoin ¶ added in v1.2.9
func (_m *MockNakamaModule) GroupUserJoin(ctx context.Context, groupID string, userID string, username string) error
GroupUserJoin provides a mock function with given fields: ctx, groupID, userID, username
func (*MockNakamaModule) GroupUserLeave ¶ added in v1.2.9
func (_m *MockNakamaModule) GroupUserLeave(ctx context.Context, groupID string, userID string, username string) error
GroupUserLeave provides a mock function with given fields: ctx, groupID, userID, username
func (*MockNakamaModule) GroupUsersAdd ¶ added in v1.2.9
func (_m *MockNakamaModule) GroupUsersAdd(ctx context.Context, callerID string, groupID string, userIDs []string) error
GroupUsersAdd provides a mock function with given fields: ctx, callerID, groupID, userIDs
func (*MockNakamaModule) GroupUsersBan ¶ added in v1.2.9
func (_m *MockNakamaModule) GroupUsersBan(ctx context.Context, callerID string, groupID string, userIDs []string) error
GroupUsersBan provides a mock function with given fields: ctx, callerID, groupID, userIDs
func (*MockNakamaModule) GroupUsersDemote ¶ added in v1.2.9
func (_m *MockNakamaModule) GroupUsersDemote(ctx context.Context, callerID string, groupID string, userIDs []string) error
GroupUsersDemote provides a mock function with given fields: ctx, callerID, groupID, userIDs
func (*MockNakamaModule) GroupUsersKick ¶ added in v1.2.9
func (_m *MockNakamaModule) GroupUsersKick(ctx context.Context, callerID string, groupID string, userIDs []string) error
GroupUsersKick provides a mock function with given fields: ctx, callerID, groupID, userIDs
func (*MockNakamaModule) GroupUsersList ¶ added in v1.2.9
func (_m *MockNakamaModule) GroupUsersList(ctx context.Context, id string, limit int, state *int, cursor string) ([]*api.GroupUserList_GroupUser, string, error)
GroupUsersList provides a mock function with given fields: ctx, id, limit, state, cursor
func (*MockNakamaModule) GroupUsersPromote ¶ added in v1.2.9
func (_m *MockNakamaModule) GroupUsersPromote(ctx context.Context, callerID string, groupID string, userIDs []string) error
GroupUsersPromote provides a mock function with given fields: ctx, callerID, groupID, userIDs
func (*MockNakamaModule) GroupsGetId ¶ added in v1.2.9
func (_m *MockNakamaModule) GroupsGetId(ctx context.Context, groupIDs []string) ([]*api.Group, error)
GroupsGetId provides a mock function with given fields: ctx, groupIDs
func (*MockNakamaModule) GroupsGetRandom ¶ added in v1.2.9
GroupsGetRandom provides a mock function with given fields: ctx, count
func (*MockNakamaModule) GroupsList ¶ added in v1.2.9
func (_m *MockNakamaModule) GroupsList(ctx context.Context, name string, langTag string, members *int, open *bool, limit int, cursor string) ([]*api.Group, string, error)
GroupsList provides a mock function with given fields: ctx, name, langTag, members, open, limit, cursor
func (*MockNakamaModule) LeaderboardCreate ¶ added in v1.2.9
func (_m *MockNakamaModule) LeaderboardCreate(ctx context.Context, id string, authoritative bool, sortOrder string, operator string, resetSchedule string, metadata map[string]interface{}) error
LeaderboardCreate provides a mock function with given fields: ctx, id, authoritative, sortOrder, operator, resetSchedule, metadata
func (*MockNakamaModule) LeaderboardDelete ¶ added in v1.2.9
func (_m *MockNakamaModule) LeaderboardDelete(ctx context.Context, id string) error
LeaderboardDelete provides a mock function with given fields: ctx, id
func (*MockNakamaModule) LeaderboardList ¶ added in v1.2.9
func (_m *MockNakamaModule) LeaderboardList(limit int, cursor string) (*api.LeaderboardList, error)
LeaderboardList provides a mock function with given fields: limit, cursor
func (*MockNakamaModule) LeaderboardRecordDelete ¶ added in v1.2.9
func (_m *MockNakamaModule) LeaderboardRecordDelete(ctx context.Context, id string, ownerID string) error
LeaderboardRecordDelete provides a mock function with given fields: ctx, id, ownerID
func (*MockNakamaModule) LeaderboardRecordWrite ¶ added in v1.2.9
func (_m *MockNakamaModule) LeaderboardRecordWrite(ctx context.Context, id string, ownerID string, username string, score int64, subscore int64, metadata map[string]interface{}, overrideOperator *int) (*api.LeaderboardRecord, error)
LeaderboardRecordWrite provides a mock function with given fields: ctx, id, ownerID, username, score, subscore, metadata, overrideOperator
func (*MockNakamaModule) LeaderboardRecordsHaystack ¶ added in v1.2.9
func (_m *MockNakamaModule) LeaderboardRecordsHaystack(ctx context.Context, id string, ownerID string, limit int, cursor string, expiry int64) (*api.LeaderboardRecordList, error)
LeaderboardRecordsHaystack provides a mock function with given fields: ctx, id, ownerID, limit, cursor, expiry
func (*MockNakamaModule) LeaderboardRecordsList ¶ added in v1.2.9
func (_m *MockNakamaModule) LeaderboardRecordsList(ctx context.Context, id string, ownerIDs []string, limit int, cursor string, expiry int64) ([]*api.LeaderboardRecord, []*api.LeaderboardRecord, string, string, error)
LeaderboardRecordsList provides a mock function with given fields: ctx, id, ownerIDs, limit, cursor, expiry
func (*MockNakamaModule) LeaderboardRecordsListCursorFromRank ¶ added in v1.2.9
func (_m *MockNakamaModule) LeaderboardRecordsListCursorFromRank(id string, rank int64, overrideExpiry int64) (string, error)
LeaderboardRecordsListCursorFromRank provides a mock function with given fields: id, rank, overrideExpiry
func (*MockNakamaModule) LeaderboardsGetId ¶ added in v1.2.9
func (_m *MockNakamaModule) LeaderboardsGetId(ctx context.Context, ids []string) ([]*api.Leaderboard, error)
LeaderboardsGetId provides a mock function with given fields: ctx, ids
func (*MockNakamaModule) LinkApple ¶ added in v1.2.9
LinkApple provides a mock function with given fields: ctx, userID, token
func (*MockNakamaModule) LinkCustom ¶ added in v1.2.9
LinkCustom provides a mock function with given fields: ctx, userID, customID
func (*MockNakamaModule) LinkDevice ¶ added in v1.2.9
LinkDevice provides a mock function with given fields: ctx, userID, deviceID
func (*MockNakamaModule) LinkEmail ¶ added in v1.2.9
func (_m *MockNakamaModule) LinkEmail(ctx context.Context, userID string, email string, password string) error
LinkEmail provides a mock function with given fields: ctx, userID, email, password
func (*MockNakamaModule) LinkFacebook ¶ added in v1.2.9
func (_m *MockNakamaModule) LinkFacebook(ctx context.Context, userID string, username string, token string, importFriends bool) error
LinkFacebook provides a mock function with given fields: ctx, userID, username, token, importFriends
func (*MockNakamaModule) LinkFacebookInstantGame ¶ added in v1.2.9
func (_m *MockNakamaModule) LinkFacebookInstantGame(ctx context.Context, userID string, signedPlayerInfo string) error
LinkFacebookInstantGame provides a mock function with given fields: ctx, userID, signedPlayerInfo
func (*MockNakamaModule) LinkGameCenter ¶ added in v1.2.9
func (_m *MockNakamaModule) LinkGameCenter(ctx context.Context, userID string, playerID string, bundleID string, timestamp int64, salt string, signature string, publicKeyUrl string) error
LinkGameCenter provides a mock function with given fields: ctx, userID, playerID, bundleID, timestamp, salt, signature, publicKeyUrl
func (*MockNakamaModule) LinkGoogle ¶ added in v1.2.9
LinkGoogle provides a mock function with given fields: ctx, userID, token
func (*MockNakamaModule) LinkSteam ¶ added in v1.2.9
func (_m *MockNakamaModule) LinkSteam(ctx context.Context, userID string, username string, token string, importFriends bool) error
LinkSteam provides a mock function with given fields: ctx, userID, username, token, importFriends
func (*MockNakamaModule) MatchCreate ¶ added in v1.2.9
func (_m *MockNakamaModule) MatchCreate(ctx context.Context, module string, params map[string]interface{}) (string, error)
MatchCreate provides a mock function with given fields: ctx, module, params
func (*MockNakamaModule) MatchGet ¶ added in v1.2.9
MatchGet provides a mock function with given fields: ctx, id
func (*MockNakamaModule) MatchList ¶ added in v1.2.9
func (_m *MockNakamaModule) MatchList(ctx context.Context, limit int, authoritative bool, label string, minSize *int, maxSize *int, query string) ([]*api.Match, error)
MatchList provides a mock function with given fields: ctx, limit, authoritative, label, minSize, maxSize, query
func (*MockNakamaModule) MatchSignal ¶ added in v1.2.9
func (_m *MockNakamaModule) MatchSignal(ctx context.Context, id string, data string) (string, error)
MatchSignal provides a mock function with given fields: ctx, id, data
func (*MockNakamaModule) MetricsCounterAdd ¶ added in v1.2.9
func (_m *MockNakamaModule) MetricsCounterAdd(name string, tags map[string]string, delta int64)
MetricsCounterAdd provides a mock function with given fields: name, tags, delta
func (*MockNakamaModule) MetricsGaugeSet ¶ added in v1.2.9
func (_m *MockNakamaModule) MetricsGaugeSet(name string, tags map[string]string, value float64)
MetricsGaugeSet provides a mock function with given fields: name, tags, value
func (*MockNakamaModule) MetricsTimerRecord ¶ added in v1.2.9
func (_m *MockNakamaModule) MetricsTimerRecord(name string, tags map[string]string, value time.Duration)
MetricsTimerRecord provides a mock function with given fields: name, tags, value
func (*MockNakamaModule) MultiUpdate ¶ added in v1.2.9
func (_m *MockNakamaModule) MultiUpdate(ctx context.Context, accountUpdates []*runtime.AccountUpdate, storageWrites []*runtime.StorageWrite, storageDeletes []*runtime.StorageDelete, walletUpdates []*runtime.WalletUpdate, updateLedger bool) ([]*api.StorageObjectAck, []*runtime.WalletUpdateResult, error)
MultiUpdate provides a mock function with given fields: ctx, accountUpdates, storageWrites, storageDeletes, walletUpdates, updateLedger
func (*MockNakamaModule) NotificationSend ¶ added in v1.2.9
func (_m *MockNakamaModule) NotificationSend(ctx context.Context, userID string, subject string, content map[string]interface{}, code int, sender string, persistent bool) error
NotificationSend provides a mock function with given fields: ctx, userID, subject, content, code, sender, persistent
func (*MockNakamaModule) NotificationSendAll ¶ added in v1.2.9
func (_m *MockNakamaModule) NotificationSendAll(ctx context.Context, subject string, content map[string]interface{}, code int, persistent bool) error
NotificationSendAll provides a mock function with given fields: ctx, subject, content, code, persistent
func (*MockNakamaModule) NotificationsDelete ¶ added in v1.2.9
func (_m *MockNakamaModule) NotificationsDelete(ctx context.Context, notifications []*runtime.NotificationDelete) error
NotificationsDelete provides a mock function with given fields: ctx, notifications
func (*MockNakamaModule) NotificationsSend ¶ added in v1.2.9
func (_m *MockNakamaModule) NotificationsSend(ctx context.Context, notifications []*runtime.NotificationSend) error
NotificationsSend provides a mock function with given fields: ctx, notifications
func (*MockNakamaModule) PurchaseGetByTransactionId ¶ added in v1.2.9
func (_m *MockNakamaModule) PurchaseGetByTransactionId(ctx context.Context, transactionID string) (*api.ValidatedPurchase, error)
PurchaseGetByTransactionId provides a mock function with given fields: ctx, transactionID
func (*MockNakamaModule) PurchaseValidateApple ¶ added in v1.2.9
func (_m *MockNakamaModule) PurchaseValidateApple(ctx context.Context, userID string, receipt string, persist bool, passwordOverride ...string) (*api.ValidatePurchaseResponse, error)
PurchaseValidateApple provides a mock function with given fields: ctx, userID, receipt, persist, passwordOverride
func (*MockNakamaModule) PurchaseValidateFacebookInstant ¶ added in v1.2.9
func (_m *MockNakamaModule) PurchaseValidateFacebookInstant(ctx context.Context, userID string, signedRequest string, persist bool) (*api.ValidatePurchaseResponse, error)
PurchaseValidateFacebookInstant provides a mock function with given fields: ctx, userID, signedRequest, persist
func (*MockNakamaModule) PurchaseValidateGoogle ¶ added in v1.2.9
func (_m *MockNakamaModule) PurchaseValidateGoogle(ctx context.Context, userID string, receipt string, persist bool, overrides ...struct { ClientEmail string PrivateKey string }) (*api.ValidatePurchaseResponse, error)
PurchaseValidateGoogle provides a mock function with given fields: ctx, userID, receipt, persist, overrides
func (*MockNakamaModule) PurchaseValidateHuawei ¶ added in v1.2.9
func (_m *MockNakamaModule) PurchaseValidateHuawei(ctx context.Context, userID string, signature string, inAppPurchaseData string, persist bool) (*api.ValidatePurchaseResponse, error)
PurchaseValidateHuawei provides a mock function with given fields: ctx, userID, signature, inAppPurchaseData, persist
func (*MockNakamaModule) PurchasesList ¶ added in v1.2.9
func (_m *MockNakamaModule) PurchasesList(ctx context.Context, userID string, limit int, cursor string) (*api.PurchaseList, error)
PurchasesList provides a mock function with given fields: ctx, userID, limit, cursor
func (*MockNakamaModule) ReadFile ¶ added in v1.2.9
func (_m *MockNakamaModule) ReadFile(path string) (*os.File, error)
ReadFile provides a mock function with given fields: path
func (*MockNakamaModule) SessionDisconnect ¶ added in v1.2.9
func (_m *MockNakamaModule) SessionDisconnect(ctx context.Context, sessionID string, reason ...runtime.PresenceReason) error
SessionDisconnect provides a mock function with given fields: ctx, sessionID, reason
func (*MockNakamaModule) SessionLogout ¶ added in v1.2.9
func (_m *MockNakamaModule) SessionLogout(userID string, token string, refreshToken string) error
SessionLogout provides a mock function with given fields: userID, token, refreshToken
func (*MockNakamaModule) StorageDelete ¶ added in v1.2.9
func (_m *MockNakamaModule) StorageDelete(ctx context.Context, deletes []*runtime.StorageDelete) error
StorageDelete provides a mock function with given fields: ctx, deletes
func (*MockNakamaModule) StorageIndexList ¶ added in v1.2.9
func (_m *MockNakamaModule) StorageIndexList(ctx context.Context, callerID string, indexName string, query string, limit int, order []string) (*api.StorageObjects, error)
StorageIndexList provides a mock function with given fields: ctx, callerID, indexName, query, limit, order
func (*MockNakamaModule) StorageList ¶ added in v1.2.9
func (_m *MockNakamaModule) StorageList(ctx context.Context, callerID string, userID string, collection string, limit int, cursor string) ([]*api.StorageObject, string, error)
StorageList provides a mock function with given fields: ctx, callerID, userID, collection, limit, cursor
func (*MockNakamaModule) StorageRead ¶ added in v1.2.9
func (_m *MockNakamaModule) StorageRead(ctx context.Context, reads []*runtime.StorageRead) ([]*api.StorageObject, error)
StorageRead provides a mock function with given fields: ctx, reads
func (*MockNakamaModule) StorageWrite ¶ added in v1.2.9
func (_m *MockNakamaModule) StorageWrite(ctx context.Context, writes []*runtime.StorageWrite) ([]*api.StorageObjectAck, error)
StorageWrite provides a mock function with given fields: ctx, writes
func (*MockNakamaModule) StreamClose ¶ added in v1.2.9
func (_m *MockNakamaModule) StreamClose(mode uint8, subject string, subcontext string, label string) error
StreamClose provides a mock function with given fields: mode, subject, subcontext, label
func (*MockNakamaModule) StreamCount ¶ added in v1.2.9
func (_m *MockNakamaModule) StreamCount(mode uint8, subject string, subcontext string, label string) (int, error)
StreamCount provides a mock function with given fields: mode, subject, subcontext, label
func (*MockNakamaModule) StreamSend ¶ added in v1.2.9
func (_m *MockNakamaModule) StreamSend(mode uint8, subject string, subcontext string, label string, data string, presences []runtime.Presence, reliable bool) error
StreamSend provides a mock function with given fields: mode, subject, subcontext, label, data, presences, reliable
func (*MockNakamaModule) StreamSendRaw ¶ added in v1.2.9
func (_m *MockNakamaModule) StreamSendRaw(mode uint8, subject string, subcontext string, label string, msg *rtapi.Envelope, presences []runtime.Presence, reliable bool) error
StreamSendRaw provides a mock function with given fields: mode, subject, subcontext, label, msg, presences, reliable
func (*MockNakamaModule) StreamUserGet ¶ added in v1.2.9
func (_m *MockNakamaModule) StreamUserGet(mode uint8, subject string, subcontext string, label string, userID string, sessionID string) (runtime.PresenceMeta, error)
StreamUserGet provides a mock function with given fields: mode, subject, subcontext, label, userID, sessionID
func (*MockNakamaModule) StreamUserJoin ¶ added in v1.2.9
func (_m *MockNakamaModule) StreamUserJoin(mode uint8, subject string, subcontext string, label string, userID string, sessionID string, hidden bool, persistence bool, status string) (bool, error)
StreamUserJoin provides a mock function with given fields: mode, subject, subcontext, label, userID, sessionID, hidden, persistence, status
func (*MockNakamaModule) StreamUserKick ¶ added in v1.2.9
func (_m *MockNakamaModule) StreamUserKick(mode uint8, subject string, subcontext string, label string, presence runtime.Presence) error
StreamUserKick provides a mock function with given fields: mode, subject, subcontext, label, presence
func (*MockNakamaModule) StreamUserLeave ¶ added in v1.2.9
func (_m *MockNakamaModule) StreamUserLeave(mode uint8, subject string, subcontext string, label string, userID string, sessionID string) error
StreamUserLeave provides a mock function with given fields: mode, subject, subcontext, label, userID, sessionID
func (*MockNakamaModule) StreamUserList ¶ added in v1.2.9
func (_m *MockNakamaModule) StreamUserList(mode uint8, subject string, subcontext string, label string, includeHidden bool, includeNotHidden bool) ([]runtime.Presence, error)
StreamUserList provides a mock function with given fields: mode, subject, subcontext, label, includeHidden, includeNotHidden
func (*MockNakamaModule) StreamUserUpdate ¶ added in v1.2.9
func (_m *MockNakamaModule) StreamUserUpdate(mode uint8, subject string, subcontext string, label string, userID string, sessionID string, hidden bool, persistence bool, status string) error
StreamUserUpdate provides a mock function with given fields: mode, subject, subcontext, label, userID, sessionID, hidden, persistence, status
func (*MockNakamaModule) SubscriptionGetByProductId ¶ added in v1.2.9
func (_m *MockNakamaModule) SubscriptionGetByProductId(ctx context.Context, userID string, productID string) (*api.ValidatedSubscription, error)
SubscriptionGetByProductId provides a mock function with given fields: ctx, userID, productID
func (*MockNakamaModule) SubscriptionValidateApple ¶ added in v1.2.9
func (_m *MockNakamaModule) SubscriptionValidateApple(ctx context.Context, userID string, receipt string, persist bool, passwordOverride ...string) (*api.ValidateSubscriptionResponse, error)
SubscriptionValidateApple provides a mock function with given fields: ctx, userID, receipt, persist, passwordOverride
func (*MockNakamaModule) SubscriptionValidateGoogle ¶ added in v1.2.9
func (_m *MockNakamaModule) SubscriptionValidateGoogle(ctx context.Context, userID string, receipt string, persist bool, overrides ...struct { ClientEmail string PrivateKey string }) (*api.ValidateSubscriptionResponse, error)
SubscriptionValidateGoogle provides a mock function with given fields: ctx, userID, receipt, persist, overrides
func (*MockNakamaModule) SubscriptionsList ¶ added in v1.2.9
func (_m *MockNakamaModule) SubscriptionsList(ctx context.Context, userID string, limit int, cursor string) (*api.SubscriptionList, error)
SubscriptionsList provides a mock function with given fields: ctx, userID, limit, cursor
func (*MockNakamaModule) TournamentAddAttempt ¶ added in v1.2.9
func (_m *MockNakamaModule) TournamentAddAttempt(ctx context.Context, id string, ownerID string, count int) error
TournamentAddAttempt provides a mock function with given fields: ctx, id, ownerID, count
func (*MockNakamaModule) TournamentCreate ¶ added in v1.2.9
func (_m *MockNakamaModule) TournamentCreate(ctx context.Context, id string, authoritative bool, sortOrder string, operator string, resetSchedule string, metadata map[string]interface{}, title string, description string, category int, startTime int, endTime int, duration int, maxSize int, maxNumScore int, joinRequired bool) error
TournamentCreate provides a mock function with given fields: ctx, id, authoritative, sortOrder, operator, resetSchedule, metadata, title, description, category, startTime, endTime, duration, maxSize, maxNumScore, joinRequired
func (*MockNakamaModule) TournamentDelete ¶ added in v1.2.9
func (_m *MockNakamaModule) TournamentDelete(ctx context.Context, id string) error
TournamentDelete provides a mock function with given fields: ctx, id
func (*MockNakamaModule) TournamentJoin ¶ added in v1.2.9
func (_m *MockNakamaModule) TournamentJoin(ctx context.Context, id string, ownerID string, username string) error
TournamentJoin provides a mock function with given fields: ctx, id, ownerID, username
func (*MockNakamaModule) TournamentList ¶ added in v1.2.9
func (_m *MockNakamaModule) TournamentList(ctx context.Context, categoryStart int, categoryEnd int, startTime int, endTime int, limit int, cursor string) (*api.TournamentList, error)
TournamentList provides a mock function with given fields: ctx, categoryStart, categoryEnd, startTime, endTime, limit, cursor
func (*MockNakamaModule) TournamentRecordDelete ¶ added in v1.2.9
func (_m *MockNakamaModule) TournamentRecordDelete(ctx context.Context, id string, ownerID string) error
TournamentRecordDelete provides a mock function with given fields: ctx, id, ownerID
func (*MockNakamaModule) TournamentRecordWrite ¶ added in v1.2.9
func (_m *MockNakamaModule) TournamentRecordWrite(ctx context.Context, id string, ownerID string, username string, score int64, subscore int64, metadata map[string]interface{}, operatorOverride *int) (*api.LeaderboardRecord, error)
TournamentRecordWrite provides a mock function with given fields: ctx, id, ownerID, username, score, subscore, metadata, operatorOverride
func (*MockNakamaModule) TournamentRecordsHaystack ¶ added in v1.2.9
func (_m *MockNakamaModule) TournamentRecordsHaystack(ctx context.Context, id string, ownerID string, limit int, cursor string, expiry int64) (*api.TournamentRecordList, error)
TournamentRecordsHaystack provides a mock function with given fields: ctx, id, ownerID, limit, cursor, expiry
func (*MockNakamaModule) TournamentRecordsList ¶ added in v1.2.9
func (_m *MockNakamaModule) TournamentRecordsList(ctx context.Context, tournamentId string, ownerIDs []string, limit int, cursor string, overrideExpiry int64) ([]*api.LeaderboardRecord, []*api.LeaderboardRecord, string, string, error)
TournamentRecordsList provides a mock function with given fields: ctx, tournamentId, ownerIDs, limit, cursor, overrideExpiry
func (*MockNakamaModule) TournamentsGetId ¶ added in v1.2.9
func (_m *MockNakamaModule) TournamentsGetId(ctx context.Context, tournamentIDs []string) ([]*api.Tournament, error)
TournamentsGetId provides a mock function with given fields: ctx, tournamentIDs
func (*MockNakamaModule) UnlinkApple ¶ added in v1.2.9
UnlinkApple provides a mock function with given fields: ctx, userID, token
func (*MockNakamaModule) UnlinkCustom ¶ added in v1.2.9
UnlinkCustom provides a mock function with given fields: ctx, userID, customID
func (*MockNakamaModule) UnlinkDevice ¶ added in v1.2.9
UnlinkDevice provides a mock function with given fields: ctx, userID, deviceID
func (*MockNakamaModule) UnlinkEmail ¶ added in v1.2.9
UnlinkEmail provides a mock function with given fields: ctx, userID, email
func (*MockNakamaModule) UnlinkFacebook ¶ added in v1.2.9
UnlinkFacebook provides a mock function with given fields: ctx, userID, token
func (*MockNakamaModule) UnlinkFacebookInstantGame ¶ added in v1.2.9
func (_m *MockNakamaModule) UnlinkFacebookInstantGame(ctx context.Context, userID string, signedPlayerInfo string) error
UnlinkFacebookInstantGame provides a mock function with given fields: ctx, userID, signedPlayerInfo
func (*MockNakamaModule) UnlinkGameCenter ¶ added in v1.2.9
func (_m *MockNakamaModule) UnlinkGameCenter(ctx context.Context, userID string, playerID string, bundleID string, timestamp int64, salt string, signature string, publicKeyUrl string) error
UnlinkGameCenter provides a mock function with given fields: ctx, userID, playerID, bundleID, timestamp, salt, signature, publicKeyUrl
func (*MockNakamaModule) UnlinkGoogle ¶ added in v1.2.9
UnlinkGoogle provides a mock function with given fields: ctx, userID, token
func (*MockNakamaModule) UnlinkSteam ¶ added in v1.2.9
UnlinkSteam provides a mock function with given fields: ctx, userID, token
func (*MockNakamaModule) UserGroupsList ¶ added in v1.2.9
func (_m *MockNakamaModule) UserGroupsList(ctx context.Context, userID string, limit int, state *int, cursor string) ([]*api.UserGroupList_UserGroup, string, error)
UserGroupsList provides a mock function with given fields: ctx, userID, limit, state, cursor
func (*MockNakamaModule) UsersBanId ¶ added in v1.2.9
func (_m *MockNakamaModule) UsersBanId(ctx context.Context, userIDs []string) error
UsersBanId provides a mock function with given fields: ctx, userIDs
func (*MockNakamaModule) UsersGetId ¶ added in v1.2.9
func (_m *MockNakamaModule) UsersGetId(ctx context.Context, userIDs []string, facebookIDs []string) ([]*api.User, error)
UsersGetId provides a mock function with given fields: ctx, userIDs, facebookIDs
func (*MockNakamaModule) UsersGetRandom ¶ added in v1.2.9
UsersGetRandom provides a mock function with given fields: ctx, count
func (*MockNakamaModule) UsersGetUsername ¶ added in v1.2.9
func (_m *MockNakamaModule) UsersGetUsername(ctx context.Context, usernames []string) ([]*api.User, error)
UsersGetUsername provides a mock function with given fields: ctx, usernames
func (*MockNakamaModule) UsersUnbanId ¶ added in v1.2.9
func (_m *MockNakamaModule) UsersUnbanId(ctx context.Context, userIDs []string) error
UsersUnbanId provides a mock function with given fields: ctx, userIDs
func (*MockNakamaModule) WalletLedgerList ¶ added in v1.2.9
func (_m *MockNakamaModule) WalletLedgerList(ctx context.Context, userID string, limit int, cursor string) ([]runtime.WalletLedgerItem, string, error)
WalletLedgerList provides a mock function with given fields: ctx, userID, limit, cursor
func (*MockNakamaModule) WalletLedgerUpdate ¶ added in v1.2.9
func (_m *MockNakamaModule) WalletLedgerUpdate(ctx context.Context, itemID string, metadata map[string]interface{}) (runtime.WalletLedgerItem, error)
WalletLedgerUpdate provides a mock function with given fields: ctx, itemID, metadata
func (*MockNakamaModule) WalletUpdate ¶ added in v1.2.9
func (_m *MockNakamaModule) WalletUpdate(ctx context.Context, userID string, changeset map[string]int64, metadata map[string]interface{}, updateLedger bool) (map[string]int64, map[string]int64, error)
WalletUpdate provides a mock function with given fields: ctx, userID, changeset, metadata, updateLedger
func (*MockNakamaModule) WalletsUpdate ¶ added in v1.2.9
func (_m *MockNakamaModule) WalletsUpdate(ctx context.Context, updates []*runtime.WalletUpdate, updateLedger bool) ([]*runtime.WalletUpdateResult, error)
WalletsUpdate provides a mock function with given fields: ctx, updates, updateLedger
type MockPresence ¶ added in v1.2.9
MockPresence is an autogenerated mock type for the Presence type
func NewMockPresence ¶ added in v1.2.9
func NewMockPresence(t mockConstructorTestingTNewMockPresence) *MockPresence
NewMockPresence creates a new instance of MockPresence. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockPresence) GetHidden ¶ added in v1.2.9
func (_m *MockPresence) GetHidden() bool
GetHidden provides a mock function with given fields:
func (*MockPresence) GetNodeId ¶ added in v1.2.9
func (_m *MockPresence) GetNodeId() string
GetNodeId provides a mock function with given fields:
func (*MockPresence) GetPersistence ¶ added in v1.2.9
func (_m *MockPresence) GetPersistence() bool
GetPersistence provides a mock function with given fields:
func (*MockPresence) GetReason ¶ added in v1.2.9
func (_m *MockPresence) GetReason() runtime.PresenceReason
GetReason provides a mock function with given fields:
func (*MockPresence) GetSessionId ¶ added in v1.2.9
func (_m *MockPresence) GetSessionId() string
GetSessionId provides a mock function with given fields:
func (*MockPresence) GetStatus ¶ added in v1.2.9
func (_m *MockPresence) GetStatus() string
GetStatus provides a mock function with given fields:
func (*MockPresence) GetUserId ¶ added in v1.2.9
func (_m *MockPresence) GetUserId() string
GetUserId provides a mock function with given fields:
func (*MockPresence) GetUsername ¶ added in v1.2.9
func (_m *MockPresence) GetUsername() string
GetUsername provides a mock function with given fields:
type MockPresenceMeta ¶ added in v1.2.9
MockPresenceMeta is an autogenerated mock type for the PresenceMeta type
func NewMockPresenceMeta ¶ added in v1.2.9
func NewMockPresenceMeta(t mockConstructorTestingTNewMockPresenceMeta) *MockPresenceMeta
NewMockPresenceMeta creates a new instance of MockPresenceMeta. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockPresenceMeta) GetHidden ¶ added in v1.2.9
func (_m *MockPresenceMeta) GetHidden() bool
GetHidden provides a mock function with given fields:
func (*MockPresenceMeta) GetPersistence ¶ added in v1.2.9
func (_m *MockPresenceMeta) GetPersistence() bool
GetPersistence provides a mock function with given fields:
func (*MockPresenceMeta) GetReason ¶ added in v1.2.9
func (_m *MockPresenceMeta) GetReason() runtime.PresenceReason
GetReason provides a mock function with given fields:
func (*MockPresenceMeta) GetStatus ¶ added in v1.2.9
func (_m *MockPresenceMeta) GetStatus() string
GetStatus provides a mock function with given fields:
func (*MockPresenceMeta) GetUsername ¶ added in v1.2.9
func (_m *MockPresenceMeta) GetUsername() string
GetUsername provides a mock function with given fields:
type MockSatori ¶ added in v1.2.9
MockSatori is an autogenerated mock type for the Satori type
func NewMockSatori ¶ added in v1.2.9
func NewMockSatori(t mockConstructorTestingTNewMockSatori) *MockSatori
NewMockSatori creates a new instance of MockSatori. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockSatori) Authenticate ¶ added in v1.2.9
Authenticate provides a mock function with given fields: ctx, id, ipAddress
func (*MockSatori) EventsPublish ¶ added in v1.2.9
EventsPublish provides a mock function with given fields: ctx, id, events
func (*MockSatori) ExperimentsList ¶ added in v1.2.9
func (_m *MockSatori) ExperimentsList(ctx context.Context, id string, names ...string) (*runtime.ExperimentList, error)
ExperimentsList provides a mock function with given fields: ctx, id, names
func (*MockSatori) FlagsList ¶ added in v1.2.9
func (_m *MockSatori) FlagsList(ctx context.Context, id string, names ...string) (*runtime.FlagList, error)
FlagsList provides a mock function with given fields: ctx, id, names
func (*MockSatori) LiveEventsList ¶ added in v1.2.9
func (_m *MockSatori) LiveEventsList(ctx context.Context, id string, names ...string) (*runtime.LiveEventList, error)
LiveEventsList provides a mock function with given fields: ctx, id, names
func (*MockSatori) PropertiesGet ¶ added in v1.2.9
func (_m *MockSatori) PropertiesGet(ctx context.Context, id string) (*runtime.Properties, error)
PropertiesGet provides a mock function with given fields: ctx, id
func (*MockSatori) PropertiesUpdate ¶ added in v1.2.9
func (_m *MockSatori) PropertiesUpdate(ctx context.Context, id string, properties *runtime.PropertiesUpdate) error
PropertiesUpdate provides a mock function with given fields: ctx, id, properties
type MockWalletLedgerItem ¶ added in v1.2.9
MockWalletLedgerItem is an autogenerated mock type for the WalletLedgerItem type
func NewMockWalletLedgerItem ¶ added in v1.2.9
func NewMockWalletLedgerItem(t mockConstructorTestingTNewMockWalletLedgerItem) *MockWalletLedgerItem
NewMockWalletLedgerItem creates a new instance of MockWalletLedgerItem. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockWalletLedgerItem) GetChangeset ¶ added in v1.2.9
func (_m *MockWalletLedgerItem) GetChangeset() map[string]int64
GetChangeset provides a mock function with given fields:
func (*MockWalletLedgerItem) GetCreateTime ¶ added in v1.2.9
func (_m *MockWalletLedgerItem) GetCreateTime() int64
GetCreateTime provides a mock function with given fields:
func (*MockWalletLedgerItem) GetID ¶ added in v1.2.9
func (_m *MockWalletLedgerItem) GetID() string
GetID provides a mock function with given fields:
func (*MockWalletLedgerItem) GetMetadata ¶ added in v1.2.9
func (_m *MockWalletLedgerItem) GetMetadata() map[string]interface{}
GetMetadata provides a mock function with given fields:
func (*MockWalletLedgerItem) GetUpdateTime ¶ added in v1.2.9
func (_m *MockWalletLedgerItem) GetUpdateTime() int64
GetUpdateTime provides a mock function with given fields:
func (*MockWalletLedgerItem) GetUserID ¶ added in v1.2.9
func (_m *MockWalletLedgerItem) GetUserID() string
GetUserID provides a mock function with given fields:
Source Files ¶
- mock_FleetManager.go
- mock_FleetManagerInitializer.go
- mock_FmCallbackHandler.go
- mock_FmCreateCallbackFn.go
- mock_Initializer.go
- mock_Logger.go
- mock_Match.go
- mock_MatchData.go
- mock_MatchDispatcher.go
- mock_MatchmakerEntry.go
- mock_NakamaModule.go
- mock_Presence.go
- mock_PresenceMeta.go
- mock_Satori.go
- mock_WalletLedgerItem.go