mocks

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBTX

type DBTX struct {
	mock.Mock
}

DBTX is an autogenerated mock type for the DBTX type

func NewDBTX

func NewDBTX(t interface {
	mock.TestingT
	Cleanup(func())
}) *DBTX

NewDBTX creates a new instance of DBTX. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DBTX) CopyFrom added in v0.0.6

func (_m *DBTX) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error)

CopyFrom provides a mock function with given fields: ctx, tableName, columnNames, rowSrc

func (*DBTX) Exec

func (_m *DBTX) Exec(_a0 context.Context, _a1 string, _a2 ...interface{}) (pgconn.CommandTag, error)

Exec provides a mock function with given fields: _a0, _a1, _a2

func (*DBTX) Query

func (_m *DBTX) Query(_a0 context.Context, _a1 string, _a2 ...interface{}) (pgx.Rows, error)

Query provides a mock function with given fields: _a0, _a1, _a2

func (*DBTX) QueryRow

func (_m *DBTX) QueryRow(_a0 context.Context, _a1 string, _a2 ...interface{}) pgx.Row

QueryRow provides a mock function with given fields: _a0, _a1, _a2

type Querier

type Querier struct {
	mock.Mock
}

Querier is an autogenerated mock type for the Querier type

func NewQuerier

func NewQuerier(t interface {
	mock.TestingT
	Cleanup(func())
}) *Querier

NewQuerier creates a new instance of Querier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Querier) AddChannelMember added in v0.3.0

AddChannelMember provides a mock function with given fields: ctx, arg

func (*Querier) AddChannelOwner added in v0.4.0

func (_m *Querier) AddChannelOwner(ctx context.Context, channelID int32, userID int32) error

AddChannelOwner provides a mock function with given fields: ctx, channelID, userID

func (*Querier) AddUserRole added in v0.0.6

func (_m *Querier) AddUserRole(ctx context.Context, userID int32, roleID int32) error

AddUserRole provides a mock function with given fields: ctx, userID, roleID

func (*Querier) AddUsersToRole added in v0.0.6

func (_m *Querier) AddUsersToRole(ctx context.Context, arg []models.AddUsersToRoleParams) (int64, error)

AddUsersToRole provides a mock function with given fields: ctx, arg

func (*Querier) CheckChannelExists added in v0.3.0

func (_m *Querier) CheckChannelExists(ctx context.Context, id int32) (models.CheckChannelExistsRow, error)

CheckChannelExists provides a mock function with given fields: ctx, id

func (*Querier) CheckChannelExistsAndRegistered added in v0.4.1

func (_m *Querier) CheckChannelExistsAndRegistered(ctx context.Context, id int32) (models.CheckChannelExistsAndRegisteredRow, error)

CheckChannelExistsAndRegistered provides a mock function with given fields: ctx, id

func (*Querier) CheckChannelMemberExists added in v0.3.0

func (_m *Querier) CheckChannelMemberExists(ctx context.Context, channelID int32, userID int32) (models.CheckChannelMemberExistsRow, error)

CheckChannelMemberExists provides a mock function with given fields: ctx, channelID, userID

func (*Querier) CheckChannelNameExists added in v0.4.0

func (_m *Querier) CheckChannelNameExists(ctx context.Context, lower string) (models.CheckChannelNameExistsRow, error)

CheckChannelNameExists provides a mock function with given fields: ctx, lower

func (*Querier) CheckChannelNoregStatus added in v0.4.0

func (_m *Querier) CheckChannelNoregStatus(ctx context.Context, lower string) (models.CheckChannelNoregStatusRow, error)

CheckChannelNoregStatus provides a mock function with given fields: ctx, lower

func (*Querier) CheckChannelSingleManager added in v0.4.1

func (_m *Querier) CheckChannelSingleManager(ctx context.Context, id int32) (int64, error)

CheckChannelSingleManager provides a mock function with given fields: ctx, id

func (*Querier) CheckEmailExists added in v0.0.4

func (_m *Querier) CheckEmailExists(ctx context.Context, email string) ([]pgtype.Text, error)

CheckEmailExists provides a mock function with given fields: ctx, email

func (*Querier) CheckExistingPendingRequests added in v0.4.1

func (_m *Querier) CheckExistingPendingRequests(ctx context.Context, channelID int32) ([]models.CheckExistingPendingRequestsRow, error)

CheckExistingPendingRequests provides a mock function with given fields: ctx, channelID

func (*Querier) CheckMultipleSupportersConcurrentSupports added in v0.4.0

func (_m *Querier) CheckMultipleSupportersConcurrentSupports(ctx context.Context, column1 []string, column2 int32) ([]models.CheckMultipleSupportersConcurrentSupportsRow, error)

CheckMultipleSupportersConcurrentSupports provides a mock function with given fields: ctx, column1, column2

func (*Querier) CheckMultipleSupportersNoregStatus added in v0.4.0

func (_m *Querier) CheckMultipleSupportersNoregStatus(ctx context.Context, dollar_1 []string) ([]models.CheckMultipleSupportersNoregStatusRow, error)

CheckMultipleSupportersNoregStatus provides a mock function with given fields: ctx, dollar_1

func (*Querier) CheckNewManagerChannelAccess added in v0.4.1

func (_m *Querier) CheckNewManagerChannelAccess(ctx context.Context, channelID int32, iD int32) (models.CheckNewManagerChannelAccessRow, error)

CheckNewManagerChannelAccess provides a mock function with given fields: ctx, channelID, iD

func (*Querier) CheckPendingChannelNameConflict added in v0.4.0

func (_m *Querier) CheckPendingChannelNameConflict(ctx context.Context, lower string) (models.CheckPendingChannelNameConflictRow, error)

CheckPendingChannelNameConflict provides a mock function with given fields: ctx, lower

func (*Querier) CheckSupporterConcurrentSupports added in v0.4.0

func (_m *Querier) CheckSupporterConcurrentSupports(ctx context.Context, userID int32) (int64, error)

CheckSupporterConcurrentSupports provides a mock function with given fields: ctx, userID

func (*Querier) CheckSupporterNoregStatus added in v0.4.0

func (_m *Querier) CheckSupporterNoregStatus(ctx context.Context, lower string) (bool, error)

CheckSupporterNoregStatus provides a mock function with given fields: ctx, lower

func (*Querier) CheckUserChannelOwnership added in v0.4.1

func (_m *Querier) CheckUserChannelOwnership(ctx context.Context, userID int32, iD int32) (models.CheckUserChannelOwnershipRow, error)

CheckUserChannelOwnership provides a mock function with given fields: ctx, userID, iD

func (*Querier) CheckUserCooldownStatus added in v0.4.1

func (_m *Querier) CheckUserCooldownStatus(ctx context.Context, id int32) (models.CheckUserCooldownStatusRow, error)

CheckUserCooldownStatus provides a mock function with given fields: ctx, id

func (*Querier) CheckUserNoregStatus added in v0.4.0

func (_m *Querier) CheckUserNoregStatus(ctx context.Context, lower string) (bool, error)

CheckUserNoregStatus provides a mock function with given fields: ctx, lower

func (*Querier) CheckUserOwnsOtherChannels added in v0.4.1

func (_m *Querier) CheckUserOwnsOtherChannels(ctx context.Context, id int32) (bool, error)

CheckUserOwnsOtherChannels provides a mock function with given fields: ctx, id

func (*Querier) CheckUsernameExists added in v0.0.4

func (_m *Querier) CheckUsernameExists(ctx context.Context, username string) ([]string, error)

CheckUsernameExists provides a mock function with given fields: ctx, username

func (*Querier) CleanupExpiredManagerChangeRequests added in v0.4.1

func (_m *Querier) CleanupExpiredManagerChangeRequests(ctx context.Context) error

CleanupExpiredManagerChangeRequests provides a mock function with given fields: ctx

func (*Querier) CleanupExpiredNoreg added in v0.4.0

func (_m *Querier) CleanupExpiredNoreg(ctx context.Context) error

CleanupExpiredNoreg provides a mock function with given fields: ctx

func (*Querier) CleanupExpiredPasswordResetTokens added in v0.3.0

func (_m *Querier) CleanupExpiredPasswordResetTokens(ctx context.Context, expiresAt int32, lastUpdated int32) error

CleanupExpiredPasswordResetTokens provides a mock function with given fields: ctx, expiresAt, lastUpdated

func (*Querier) ConfirmManagerChangeRequest added in v0.4.1

func (_m *Querier) ConfirmManagerChangeRequest(ctx context.Context, crc pgtype.Text) error

ConfirmManagerChangeRequest provides a mock function with given fields: ctx, crc

func (*Querier) CountChannelOwners added in v0.3.0

func (_m *Querier) CountChannelOwners(ctx context.Context, channelID int32) (int64, error)

CountChannelOwners provides a mock function with given fields: ctx, channelID

func (*Querier) CreateChannel added in v0.4.0

CreateChannel provides a mock function with given fields: ctx, arg

func (*Querier) CreateChannelForInstantRegistration added in v0.4.0

func (_m *Querier) CreateChannelForInstantRegistration(ctx context.Context, name string) (models.CreateChannelForInstantRegistrationRow, error)

CreateChannelForInstantRegistration provides a mock function with given fields: ctx, name

func (*Querier) CreateChannelForRegistration added in v0.4.0

func (_m *Querier) CreateChannelForRegistration(ctx context.Context, name string) (models.CreateChannelForRegistrationRow, error)

CreateChannelForRegistration provides a mock function with given fields: ctx, name

func (*Querier) CreateChannelSupporter added in v0.4.0

func (_m *Querier) CreateChannelSupporter(ctx context.Context, channelID int32, userID int32) error

CreateChannelSupporter provides a mock function with given fields: ctx, channelID, userID

func (*Querier) CreateInstantRegistration added in v0.4.0

CreateInstantRegistration provides a mock function with given fields: ctx, arg

func (*Querier) CreatePasswordResetToken added in v0.3.0

func (_m *Querier) CreatePasswordResetToken(ctx context.Context, arg models.CreatePasswordResetTokenParams) (models.PasswordResetToken, error)

CreatePasswordResetToken provides a mock function with given fields: ctx, arg

func (*Querier) CreatePendingChannel added in v0.4.0

CreatePendingChannel provides a mock function with given fields: ctx, arg

func (*Querier) CreatePendingUser

func (_m *Querier) CreatePendingUser(ctx context.Context, arg models.CreatePendingUserParams) (pgtype.Text, error)

CreatePendingUser provides a mock function with given fields: ctx, arg

func (*Querier) CreateRole added in v0.0.6

func (_m *Querier) CreateRole(ctx context.Context, arg models.CreateRoleParams) (models.Role, error)

CreateRole provides a mock function with given fields: ctx, arg

func (*Querier) CreateUser

func (_m *Querier) CreateUser(ctx context.Context, arg models.CreateUserParams) (models.User, error)

CreateUser provides a mock function with given fields: ctx, arg

func (*Querier) DeleteChannelSupporters added in v0.4.0

func (_m *Querier) DeleteChannelSupporters(ctx context.Context, channelID int32) error

DeleteChannelSupporters provides a mock function with given fields: ctx, channelID

func (*Querier) DeleteExpiredPasswordResetTokens added in v0.3.0

func (_m *Querier) DeleteExpiredPasswordResetTokens(ctx context.Context, expiresAt int32) error

DeleteExpiredPasswordResetTokens provides a mock function with given fields: ctx, expiresAt

func (*Querier) DeletePendingChannel added in v0.4.0

func (_m *Querier) DeletePendingChannel(ctx context.Context, channelID int32) error

DeletePendingChannel provides a mock function with given fields: ctx, channelID

func (*Querier) DeletePendingUserByCookie

func (_m *Querier) DeletePendingUserByCookie(ctx context.Context, cookie pgtype.Text) error

DeletePendingUserByCookie provides a mock function with given fields: ctx, cookie

func (*Querier) DeleteRole added in v0.0.6

func (_m *Querier) DeleteRole(ctx context.Context, id int32) error

DeleteRole provides a mock function with given fields: ctx, id

func (*Querier) DeleteSpecificChannelSupporter added in v0.4.0

func (_m *Querier) DeleteSpecificChannelSupporter(ctx context.Context, channelID int32, userID int32) error

DeleteSpecificChannelSupporter provides a mock function with given fields: ctx, channelID, userID

func (*Querier) GetActivePasswordResetTokensByUserID added in v0.3.0

func (_m *Querier) GetActivePasswordResetTokensByUserID(ctx context.Context, userID pgtype.Int4, expiresAt int32) ([]models.PasswordResetToken, error)

GetActivePasswordResetTokensByUserID provides a mock function with given fields: ctx, userID, expiresAt

func (*Querier) GetAdminLevel added in v0.0.6

func (_m *Querier) GetAdminLevel(ctx context.Context, userID int32) (models.GetAdminLevelRow, error)

GetAdminLevel provides a mock function with given fields: ctx, userID

func (*Querier) GetChannelByID added in v0.3.0

func (_m *Querier) GetChannelByID(ctx context.Context, id int32) (models.GetChannelByIDRow, error)

GetChannelByID provides a mock function with given fields: ctx, id

func (*Querier) GetChannelByName added in v0.3.0

func (_m *Querier) GetChannelByName(ctx context.Context, name string) (models.GetChannelByNameRow, error)

GetChannelByName provides a mock function with given fields: ctx, name

func (*Querier) GetChannelDetails added in v0.3.0

func (_m *Querier) GetChannelDetails(ctx context.Context, id int32) (models.GetChannelDetailsRow, error)

GetChannelDetails provides a mock function with given fields: ctx, id

func (*Querier) GetChannelMembersByAccessLevel added in v0.3.0

func (_m *Querier) GetChannelMembersByAccessLevel(ctx context.Context, channelID int32, access int32) ([]models.GetChannelMembersByAccessLevelRow, error)

GetChannelMembersByAccessLevel provides a mock function with given fields: ctx, channelID, access

func (*Querier) GetChannelUserAccess added in v0.3.0

func (_m *Querier) GetChannelUserAccess(ctx context.Context, channelID int32, userID int32) (models.GetChannelUserAccessRow, error)

GetChannelUserAccess provides a mock function with given fields: ctx, channelID, userID

func (*Querier) GetGlineByIP added in v0.0.3

func (_m *Querier) GetGlineByIP(ctx context.Context, host string) (models.Gline, error)

GetGlineByIP provides a mock function with given fields: ctx, host

func (*Querier) GetLastChannelRegistration added in v0.4.0

func (_m *Querier) GetLastChannelRegistration(ctx context.Context, userID int32) (pgtype.Int4, error)

GetLastChannelRegistration provides a mock function with given fields: ctx, userID

func (*Querier) GetManagerChangeRequestByToken added in v0.4.1

func (_m *Querier) GetManagerChangeRequestByToken(ctx context.Context, crc pgtype.Text) (models.GetManagerChangeRequestByTokenRow, error)

GetManagerChangeRequestByToken provides a mock function with given fields: ctx, crc

func (*Querier) GetManagerChangeRequestStatus added in v0.4.1

func (_m *Querier) GetManagerChangeRequestStatus(ctx context.Context, channelID int32) (models.GetManagerChangeRequestStatusRow, error)

GetManagerChangeRequestStatus provides a mock function with given fields: ctx, channelID

func (*Querier) GetPasswordResetTokenByToken added in v0.3.0

func (_m *Querier) GetPasswordResetTokenByToken(ctx context.Context, token string) (models.PasswordResetToken, error)

GetPasswordResetTokenByToken provides a mock function with given fields: ctx, token

func (*Querier) GetPasswordResetTokenStats added in v0.3.0

func (_m *Querier) GetPasswordResetTokenStats(ctx context.Context, expiresAt int32) (models.GetPasswordResetTokenStatsRow, error)

GetPasswordResetTokenStats provides a mock function with given fields: ctx, expiresAt

func (*Querier) GetPendingUserByCookie added in v0.1.0

func (_m *Querier) GetPendingUserByCookie(ctx context.Context, cookie pgtype.Text) (models.Pendinguser, error)

GetPendingUserByCookie provides a mock function with given fields: ctx, cookie

func (*Querier) GetRoleByID added in v0.0.6

func (_m *Querier) GetRoleByID(ctx context.Context, id int32) (models.Role, error)

GetRoleByID provides a mock function with given fields: ctx, id

func (*Querier) GetRoleByName added in v0.0.6

func (_m *Querier) GetRoleByName(ctx context.Context, name string) (models.Role, error)

GetRoleByName provides a mock function with given fields: ctx, name

func (*Querier) GetSupportersByUsernames added in v0.4.0

func (_m *Querier) GetSupportersByUsernames(ctx context.Context, column1 []string, column2 int32) ([]models.GetSupportersByUsernamesRow, error)

GetSupportersByUsernames provides a mock function with given fields: ctx, column1, column2

func (*Querier) GetUser added in v0.0.6

func (_m *Querier) GetUser(ctx context.Context, arg models.GetUserParams) (models.GetUserRow, error)

GetUser provides a mock function with given fields: ctx, arg

func (*Querier) GetUserBackupCodes added in v0.4.1

func (_m *Querier) GetUserBackupCodes(ctx context.Context, id int32) (models.GetUserBackupCodesRow, error)

GetUserBackupCodes provides a mock function with given fields: ctx, id

func (*Querier) GetUserChannelCount added in v0.4.0

func (_m *Querier) GetUserChannelCount(ctx context.Context, userID int32) (int64, error)

GetUserChannelCount provides a mock function with given fields: ctx, userID

func (*Querier) GetUserChannelLimit added in v0.4.0

func (_m *Querier) GetUserChannelLimit(ctx context.Context, arg models.GetUserChannelLimitParams) (int32, error)

GetUserChannelLimit provides a mock function with given fields: ctx, arg

func (*Querier) GetUserChannelMemberships added in v0.3.0

func (_m *Querier) GetUserChannelMemberships(ctx context.Context, userID int32) ([]models.GetUserChannelMembershipsRow, error)

GetUserChannelMemberships provides a mock function with given fields: ctx, userID

func (*Querier) GetUserChannels

func (_m *Querier) GetUserChannels(ctx context.Context, userID int32) ([]models.GetUserChannelsRow, error)

GetUserChannels provides a mock function with given fields: ctx, userID

func (*Querier) GetUserNoregDetails added in v0.4.0

func (_m *Querier) GetUserNoregDetails(ctx context.Context, lower string) (models.GetUserNoregDetailsRow, error)

GetUserNoregDetails provides a mock function with given fields: ctx, lower

func (*Querier) GetUserPendingRegistrations added in v0.4.0

func (_m *Querier) GetUserPendingRegistrations(ctx context.Context, managerID pgtype.Int4) (int64, error)

GetUserPendingRegistrations provides a mock function with given fields: ctx, managerID

func (*Querier) GetUsersByUsernames added in v0.0.6

func (_m *Querier) GetUsersByUsernames(ctx context.Context, userids []string) ([]models.GetUsersByUsernamesRow, error)

GetUsersByUsernames provides a mock function with given fields: ctx, userids

func (*Querier) GetWhiteListByIP added in v0.0.3

func (_m *Querier) GetWhiteListByIP(ctx context.Context, ip netip.Addr) (models.Whitelist, error)

GetWhiteListByIP provides a mock function with given fields: ctx, ip

func (*Querier) InsertManagerChangeRequest added in v0.4.1

func (_m *Querier) InsertManagerChangeRequest(ctx context.Context, arg models.InsertManagerChangeRequestParams) (pgtype.Int4, error)

InsertManagerChangeRequest provides a mock function with given fields: ctx, arg

func (*Querier) InvalidateUserPasswordResetTokens added in v0.3.0

func (_m *Querier) InvalidateUserPasswordResetTokens(ctx context.Context, userID pgtype.Int4, lastUpdated int32) error

InvalidateUserPasswordResetTokens provides a mock function with given fields: ctx, userID, lastUpdated

func (*Querier) ListPendingUsers

func (_m *Querier) ListPendingUsers(ctx context.Context) ([]models.Pendinguser, error)

ListPendingUsers provides a mock function with given fields: ctx

func (*Querier) ListRoles added in v0.0.6

func (_m *Querier) ListRoles(ctx context.Context) ([]models.Role, error)

ListRoles provides a mock function with given fields: ctx

func (*Querier) ListUserRoles added in v0.0.6

func (_m *Querier) ListUserRoles(ctx context.Context, userID int32) ([]models.Role, error)

ListUserRoles provides a mock function with given fields: ctx, userID

func (*Querier) MarkBackupCodesAsRead added in v0.4.1

func (_m *Querier) MarkBackupCodesAsRead(ctx context.Context, arg models.MarkBackupCodesAsReadParams) error

MarkBackupCodesAsRead provides a mock function with given fields: ctx, arg

func (*Querier) MarkPasswordResetTokenAsUsed added in v0.3.0

func (_m *Querier) MarkPasswordResetTokenAsUsed(ctx context.Context, arg models.MarkPasswordResetTokenAsUsedParams) error

MarkPasswordResetTokenAsUsed provides a mock function with given fields: ctx, arg

func (*Querier) RemoveChannelMember added in v0.3.0

RemoveChannelMember provides a mock function with given fields: ctx, arg

func (*Querier) RemoveUserRole added in v0.0.6

func (_m *Querier) RemoveUserRole(ctx context.Context, userID int32, roleID int32) error

RemoveUserRole provides a mock function with given fields: ctx, userID, roleID

func (*Querier) RemoveUsersFromRole added in v0.0.6

func (_m *Querier) RemoveUsersFromRole(ctx context.Context, userIds []int32, roleID int32) error

RemoveUsersFromRole provides a mock function with given fields: ctx, userIds, roleID

func (*Querier) SearchChannels added in v0.3.0

func (_m *Querier) SearchChannels(ctx context.Context, arg models.SearchChannelsParams) ([]models.SearchChannelsRow, error)

SearchChannels provides a mock function with given fields: ctx, arg

func (*Querier) SearchChannelsCount added in v0.3.0

func (_m *Querier) SearchChannelsCount(ctx context.Context, name string) (int64, error)

SearchChannelsCount provides a mock function with given fields: ctx, name

func (*Querier) SoftDeleteChannel added in v0.4.0

func (_m *Querier) SoftDeleteChannel(ctx context.Context, id int32) error

SoftDeleteChannel provides a mock function with given fields: ctx, id

func (*Querier) UpdateChannelRegistrationStatus added in v0.4.0

func (_m *Querier) UpdateChannelRegistrationStatus(ctx context.Context, id int32) error

UpdateChannelRegistrationStatus provides a mock function with given fields: ctx, id

func (*Querier) UpdateChannelSettings added in v0.3.0

UpdateChannelSettings provides a mock function with given fields: ctx, arg

func (*Querier) UpdatePendingChannelDescription added in v0.4.0

func (_m *Querier) UpdatePendingChannelDescription(ctx context.Context, channelID int32, description pgtype.Text) error

UpdatePendingChannelDescription provides a mock function with given fields: ctx, channelID, description

func (*Querier) UpdatePendingChannelStatus added in v0.4.0

UpdatePendingChannelStatus provides a mock function with given fields: ctx, arg

func (*Querier) UpdateRole added in v0.0.6

func (_m *Querier) UpdateRole(ctx context.Context, arg models.UpdateRoleParams) error

UpdateRole provides a mock function with given fields: ctx, arg

func (*Querier) UpdateUserBackupCodes added in v0.4.1

func (_m *Querier) UpdateUserBackupCodes(ctx context.Context, arg models.UpdateUserBackupCodesParams) error

UpdateUserBackupCodes provides a mock function with given fields: ctx, arg

func (*Querier) UpdateUserCooldown added in v0.4.1

func (_m *Querier) UpdateUserCooldown(ctx context.Context, iD int32, column2 interface{}) error

UpdateUserCooldown provides a mock function with given fields: ctx, iD, column2

func (*Querier) UpdateUserFlags added in v0.2.0

func (_m *Querier) UpdateUserFlags(ctx context.Context, arg models.UpdateUserFlagsParams) error

UpdateUserFlags provides a mock function with given fields: ctx, arg

func (*Querier) UpdateUserLastSeen added in v0.4.0

func (_m *Querier) UpdateUserLastSeen(ctx context.Context, userID int32) error

UpdateUserLastSeen provides a mock function with given fields: ctx, userID

func (*Querier) UpdateUserPassword added in v0.2.0

func (_m *Querier) UpdateUserPassword(ctx context.Context, arg models.UpdateUserPasswordParams) error

UpdateUserPassword provides a mock function with given fields: ctx, arg

func (*Querier) UpdateUserTotpKey added in v0.2.0

func (_m *Querier) UpdateUserTotpKey(ctx context.Context, arg models.UpdateUserTotpKeyParams) error

UpdateUserTotpKey provides a mock function with given fields: ctx, arg

func (*Querier) ValidatePasswordResetToken added in v0.3.0

func (_m *Querier) ValidatePasswordResetToken(ctx context.Context, token string, expiresAt int32) (models.PasswordResetToken, error)

ValidatePasswordResetToken provides a mock function with given fields: ctx, token, expiresAt

type ServiceInterface added in v0.1.0

type ServiceInterface struct {
	mock.Mock
}

ServiceInterface is an autogenerated mock type for the ServiceInterface type

func NewServiceInterface added in v0.1.0

func NewServiceInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServiceInterface

NewServiceInterface creates a new instance of ServiceInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ServiceInterface) AddChannelMember added in v0.3.0

AddChannelMember provides a mock function with given fields: ctx, arg

func (*ServiceInterface) AddChannelOwner added in v0.4.0

func (_m *ServiceInterface) AddChannelOwner(ctx context.Context, channelID int32, userID int32) error

AddChannelOwner provides a mock function with given fields: ctx, channelID, userID

func (*ServiceInterface) AddUserRole added in v0.1.0

func (_m *ServiceInterface) AddUserRole(ctx context.Context, userID int32, roleID int32) error

AddUserRole provides a mock function with given fields: ctx, userID, roleID

func (*ServiceInterface) AddUsersToRole added in v0.1.0

func (_m *ServiceInterface) AddUsersToRole(ctx context.Context, arg []models.AddUsersToRoleParams) (int64, error)

AddUsersToRole provides a mock function with given fields: ctx, arg

func (*ServiceInterface) CheckChannelExists added in v0.3.0

func (_m *ServiceInterface) CheckChannelExists(ctx context.Context, id int32) (models.CheckChannelExistsRow, error)

CheckChannelExists provides a mock function with given fields: ctx, id

func (*ServiceInterface) CheckChannelExistsAndRegistered added in v0.4.1

func (_m *ServiceInterface) CheckChannelExistsAndRegistered(ctx context.Context, id int32) (models.CheckChannelExistsAndRegisteredRow, error)

CheckChannelExistsAndRegistered provides a mock function with given fields: ctx, id

func (*ServiceInterface) CheckChannelMemberExists added in v0.3.0

func (_m *ServiceInterface) CheckChannelMemberExists(ctx context.Context, channelID int32, userID int32) (models.CheckChannelMemberExistsRow, error)

CheckChannelMemberExists provides a mock function with given fields: ctx, channelID, userID

func (*ServiceInterface) CheckChannelNameExists added in v0.4.0

func (_m *ServiceInterface) CheckChannelNameExists(ctx context.Context, lower string) (models.CheckChannelNameExistsRow, error)

CheckChannelNameExists provides a mock function with given fields: ctx, lower

func (*ServiceInterface) CheckChannelNoregStatus added in v0.4.0

func (_m *ServiceInterface) CheckChannelNoregStatus(ctx context.Context, lower string) (models.CheckChannelNoregStatusRow, error)

CheckChannelNoregStatus provides a mock function with given fields: ctx, lower

func (*ServiceInterface) CheckChannelSingleManager added in v0.4.1

func (_m *ServiceInterface) CheckChannelSingleManager(ctx context.Context, id int32) (int64, error)

CheckChannelSingleManager provides a mock function with given fields: ctx, id

func (*ServiceInterface) CheckEmailExists added in v0.1.0

func (_m *ServiceInterface) CheckEmailExists(ctx context.Context, email string) ([]pgtype.Text, error)

CheckEmailExists provides a mock function with given fields: ctx, email

func (*ServiceInterface) CheckExistingPendingRequests added in v0.4.1

func (_m *ServiceInterface) CheckExistingPendingRequests(ctx context.Context, channelID int32) ([]models.CheckExistingPendingRequestsRow, error)

CheckExistingPendingRequests provides a mock function with given fields: ctx, channelID

func (*ServiceInterface) CheckMultipleSupportersConcurrentSupports added in v0.4.0

func (_m *ServiceInterface) CheckMultipleSupportersConcurrentSupports(ctx context.Context, column1 []string, column2 int32) ([]models.CheckMultipleSupportersConcurrentSupportsRow, error)

CheckMultipleSupportersConcurrentSupports provides a mock function with given fields: ctx, column1, column2

func (*ServiceInterface) CheckMultipleSupportersNoregStatus added in v0.4.0

func (_m *ServiceInterface) CheckMultipleSupportersNoregStatus(ctx context.Context, dollar_1 []string) ([]models.CheckMultipleSupportersNoregStatusRow, error)

CheckMultipleSupportersNoregStatus provides a mock function with given fields: ctx, dollar_1

func (*ServiceInterface) CheckNewManagerChannelAccess added in v0.4.1

func (_m *ServiceInterface) CheckNewManagerChannelAccess(ctx context.Context, channelID int32, iD int32) (models.CheckNewManagerChannelAccessRow, error)

CheckNewManagerChannelAccess provides a mock function with given fields: ctx, channelID, iD

func (*ServiceInterface) CheckPendingChannelNameConflict added in v0.4.0

func (_m *ServiceInterface) CheckPendingChannelNameConflict(ctx context.Context, lower string) (models.CheckPendingChannelNameConflictRow, error)

CheckPendingChannelNameConflict provides a mock function with given fields: ctx, lower

func (*ServiceInterface) CheckSupporterConcurrentSupports added in v0.4.0

func (_m *ServiceInterface) CheckSupporterConcurrentSupports(ctx context.Context, userID int32) (int64, error)

CheckSupporterConcurrentSupports provides a mock function with given fields: ctx, userID

func (*ServiceInterface) CheckSupporterNoregStatus added in v0.4.0

func (_m *ServiceInterface) CheckSupporterNoregStatus(ctx context.Context, lower string) (bool, error)

CheckSupporterNoregStatus provides a mock function with given fields: ctx, lower

func (*ServiceInterface) CheckUserChannelOwnership added in v0.4.1

func (_m *ServiceInterface) CheckUserChannelOwnership(ctx context.Context, userID int32, iD int32) (models.CheckUserChannelOwnershipRow, error)

CheckUserChannelOwnership provides a mock function with given fields: ctx, userID, iD

func (*ServiceInterface) CheckUserCooldownStatus added in v0.4.1

func (_m *ServiceInterface) CheckUserCooldownStatus(ctx context.Context, id int32) (models.CheckUserCooldownStatusRow, error)

CheckUserCooldownStatus provides a mock function with given fields: ctx, id

func (*ServiceInterface) CheckUserNoregStatus added in v0.4.0

func (_m *ServiceInterface) CheckUserNoregStatus(ctx context.Context, lower string) (bool, error)

CheckUserNoregStatus provides a mock function with given fields: ctx, lower

func (*ServiceInterface) CheckUserOwnsOtherChannels added in v0.4.1

func (_m *ServiceInterface) CheckUserOwnsOtherChannels(ctx context.Context, id int32) (bool, error)

CheckUserOwnsOtherChannels provides a mock function with given fields: ctx, id

func (*ServiceInterface) CheckUsernameExists added in v0.1.0

func (_m *ServiceInterface) CheckUsernameExists(ctx context.Context, username string) ([]string, error)

CheckUsernameExists provides a mock function with given fields: ctx, username

func (*ServiceInterface) CleanupExpiredManagerChangeRequests added in v0.4.1

func (_m *ServiceInterface) CleanupExpiredManagerChangeRequests(ctx context.Context) error

CleanupExpiredManagerChangeRequests provides a mock function with given fields: ctx

func (*ServiceInterface) CleanupExpiredNoreg added in v0.4.0

func (_m *ServiceInterface) CleanupExpiredNoreg(ctx context.Context) error

CleanupExpiredNoreg provides a mock function with given fields: ctx

func (*ServiceInterface) CleanupExpiredPasswordResetTokens added in v0.3.0

func (_m *ServiceInterface) CleanupExpiredPasswordResetTokens(ctx context.Context, expiresAt int32, lastUpdated int32) error

CleanupExpiredPasswordResetTokens provides a mock function with given fields: ctx, expiresAt, lastUpdated

func (*ServiceInterface) ConfirmManagerChangeRequest added in v0.4.1

func (_m *ServiceInterface) ConfirmManagerChangeRequest(ctx context.Context, crc pgtype.Text) error

ConfirmManagerChangeRequest provides a mock function with given fields: ctx, crc

func (*ServiceInterface) CountChannelOwners added in v0.3.0

func (_m *ServiceInterface) CountChannelOwners(ctx context.Context, channelID int32) (int64, error)

CountChannelOwners provides a mock function with given fields: ctx, channelID

func (*ServiceInterface) CreateChannel added in v0.4.0

CreateChannel provides a mock function with given fields: ctx, arg

func (*ServiceInterface) CreateChannelForInstantRegistration added in v0.4.0

func (_m *ServiceInterface) CreateChannelForInstantRegistration(ctx context.Context, name string) (models.CreateChannelForInstantRegistrationRow, error)

CreateChannelForInstantRegistration provides a mock function with given fields: ctx, name

func (*ServiceInterface) CreateChannelForRegistration added in v0.4.0

func (_m *ServiceInterface) CreateChannelForRegistration(ctx context.Context, name string) (models.CreateChannelForRegistrationRow, error)

CreateChannelForRegistration provides a mock function with given fields: ctx, name

func (*ServiceInterface) CreateChannelSupporter added in v0.4.0

func (_m *ServiceInterface) CreateChannelSupporter(ctx context.Context, channelID int32, userID int32) error

CreateChannelSupporter provides a mock function with given fields: ctx, channelID, userID

func (*ServiceInterface) CreateInstantRegistration added in v0.4.0

CreateInstantRegistration provides a mock function with given fields: ctx, arg

func (*ServiceInterface) CreatePasswordResetToken added in v0.3.0

CreatePasswordResetToken provides a mock function with given fields: ctx, arg

func (*ServiceInterface) CreatePendingChannel added in v0.4.0

CreatePendingChannel provides a mock function with given fields: ctx, arg

func (*ServiceInterface) CreatePendingUser added in v0.1.0

func (_m *ServiceInterface) CreatePendingUser(ctx context.Context, arg models.CreatePendingUserParams) (pgtype.Text, error)

CreatePendingUser provides a mock function with given fields: ctx, arg

func (*ServiceInterface) CreateRole added in v0.1.0

CreateRole provides a mock function with given fields: ctx, arg

func (*ServiceInterface) CreateUser added in v0.1.0

CreateUser provides a mock function with given fields: ctx, arg

func (*ServiceInterface) DeleteChannelSupporters added in v0.4.0

func (_m *ServiceInterface) DeleteChannelSupporters(ctx context.Context, channelID int32) error

DeleteChannelSupporters provides a mock function with given fields: ctx, channelID

func (*ServiceInterface) DeleteExpiredPasswordResetTokens added in v0.3.0

func (_m *ServiceInterface) DeleteExpiredPasswordResetTokens(ctx context.Context, expiresAt int32) error

DeleteExpiredPasswordResetTokens provides a mock function with given fields: ctx, expiresAt

func (*ServiceInterface) DeletePendingChannel added in v0.4.0

func (_m *ServiceInterface) DeletePendingChannel(ctx context.Context, channelID int32) error

DeletePendingChannel provides a mock function with given fields: ctx, channelID

func (*ServiceInterface) DeletePendingUserByCookie added in v0.1.0

func (_m *ServiceInterface) DeletePendingUserByCookie(ctx context.Context, cookie pgtype.Text) error

DeletePendingUserByCookie provides a mock function with given fields: ctx, cookie

func (*ServiceInterface) DeleteRole added in v0.1.0

func (_m *ServiceInterface) DeleteRole(ctx context.Context, id int32) error

DeleteRole provides a mock function with given fields: ctx, id

func (*ServiceInterface) DeleteSpecificChannelSupporter added in v0.4.0

func (_m *ServiceInterface) DeleteSpecificChannelSupporter(ctx context.Context, channelID int32, userID int32) error

DeleteSpecificChannelSupporter provides a mock function with given fields: ctx, channelID, userID

func (*ServiceInterface) GetActivePasswordResetTokensByUserID added in v0.3.0

func (_m *ServiceInterface) GetActivePasswordResetTokensByUserID(ctx context.Context, userID pgtype.Int4, expiresAt int32) ([]models.PasswordResetToken, error)

GetActivePasswordResetTokensByUserID provides a mock function with given fields: ctx, userID, expiresAt

func (*ServiceInterface) GetAdminLevel added in v0.1.0

func (_m *ServiceInterface) GetAdminLevel(ctx context.Context, userID int32) (models.GetAdminLevelRow, error)

GetAdminLevel provides a mock function with given fields: ctx, userID

func (*ServiceInterface) GetChannelByID added in v0.3.0

func (_m *ServiceInterface) GetChannelByID(ctx context.Context, id int32) (models.GetChannelByIDRow, error)

GetChannelByID provides a mock function with given fields: ctx, id

func (*ServiceInterface) GetChannelByName added in v0.3.0

func (_m *ServiceInterface) GetChannelByName(ctx context.Context, name string) (models.GetChannelByNameRow, error)

GetChannelByName provides a mock function with given fields: ctx, name

func (*ServiceInterface) GetChannelDetails added in v0.3.0

func (_m *ServiceInterface) GetChannelDetails(ctx context.Context, id int32) (models.GetChannelDetailsRow, error)

GetChannelDetails provides a mock function with given fields: ctx, id

func (*ServiceInterface) GetChannelMembersByAccessLevel added in v0.3.0

func (_m *ServiceInterface) GetChannelMembersByAccessLevel(ctx context.Context, channelID int32, access int32) ([]models.GetChannelMembersByAccessLevelRow, error)

GetChannelMembersByAccessLevel provides a mock function with given fields: ctx, channelID, access

func (*ServiceInterface) GetChannelUserAccess added in v0.3.0

func (_m *ServiceInterface) GetChannelUserAccess(ctx context.Context, channelID int32, userID int32) (models.GetChannelUserAccessRow, error)

GetChannelUserAccess provides a mock function with given fields: ctx, channelID, userID

func (*ServiceInterface) GetGlineByIP added in v0.1.0

func (_m *ServiceInterface) GetGlineByIP(ctx context.Context, host string) (models.Gline, error)

GetGlineByIP provides a mock function with given fields: ctx, host

func (*ServiceInterface) GetLastChannelRegistration added in v0.4.0

func (_m *ServiceInterface) GetLastChannelRegistration(ctx context.Context, userID int32) (pgtype.Int4, error)

GetLastChannelRegistration provides a mock function with given fields: ctx, userID

func (*ServiceInterface) GetManagerChangeRequestByToken added in v0.4.1

func (_m *ServiceInterface) GetManagerChangeRequestByToken(ctx context.Context, crc pgtype.Text) (models.GetManagerChangeRequestByTokenRow, error)

GetManagerChangeRequestByToken provides a mock function with given fields: ctx, crc

func (*ServiceInterface) GetManagerChangeRequestStatus added in v0.4.1

func (_m *ServiceInterface) GetManagerChangeRequestStatus(ctx context.Context, channelID int32) (models.GetManagerChangeRequestStatusRow, error)

GetManagerChangeRequestStatus provides a mock function with given fields: ctx, channelID

func (*ServiceInterface) GetPasswordResetTokenByToken added in v0.3.0

func (_m *ServiceInterface) GetPasswordResetTokenByToken(ctx context.Context, token string) (models.PasswordResetToken, error)

GetPasswordResetTokenByToken provides a mock function with given fields: ctx, token

func (*ServiceInterface) GetPasswordResetTokenStats added in v0.3.0

func (_m *ServiceInterface) GetPasswordResetTokenStats(ctx context.Context, expiresAt int32) (models.GetPasswordResetTokenStatsRow, error)

GetPasswordResetTokenStats provides a mock function with given fields: ctx, expiresAt

func (*ServiceInterface) GetPendingUserByCookie added in v0.1.0

func (_m *ServiceInterface) GetPendingUserByCookie(ctx context.Context, cookie pgtype.Text) (models.Pendinguser, error)

GetPendingUserByCookie provides a mock function with given fields: ctx, cookie

func (*ServiceInterface) GetRoleByID added in v0.1.0

func (_m *ServiceInterface) GetRoleByID(ctx context.Context, id int32) (models.Role, error)

GetRoleByID provides a mock function with given fields: ctx, id

func (*ServiceInterface) GetRoleByName added in v0.1.0

func (_m *ServiceInterface) GetRoleByName(ctx context.Context, name string) (models.Role, error)

GetRoleByName provides a mock function with given fields: ctx, name

func (*ServiceInterface) GetSupportersByUsernames added in v0.4.0

func (_m *ServiceInterface) GetSupportersByUsernames(ctx context.Context, column1 []string, column2 int32) ([]models.GetSupportersByUsernamesRow, error)

GetSupportersByUsernames provides a mock function with given fields: ctx, column1, column2

func (*ServiceInterface) GetUser added in v0.1.0

GetUser provides a mock function with given fields: ctx, arg

func (*ServiceInterface) GetUserBackupCodes added in v0.4.1

func (_m *ServiceInterface) GetUserBackupCodes(ctx context.Context, id int32) (models.GetUserBackupCodesRow, error)

GetUserBackupCodes provides a mock function with given fields: ctx, id

func (*ServiceInterface) GetUserChannelCount added in v0.4.0

func (_m *ServiceInterface) GetUserChannelCount(ctx context.Context, userID int32) (int64, error)

GetUserChannelCount provides a mock function with given fields: ctx, userID

func (*ServiceInterface) GetUserChannelLimit added in v0.4.0

func (_m *ServiceInterface) GetUserChannelLimit(ctx context.Context, arg models.GetUserChannelLimitParams) (int32, error)

GetUserChannelLimit provides a mock function with given fields: ctx, arg

func (*ServiceInterface) GetUserChannelMemberships added in v0.3.0

func (_m *ServiceInterface) GetUserChannelMemberships(ctx context.Context, userID int32) ([]models.GetUserChannelMembershipsRow, error)

GetUserChannelMemberships provides a mock function with given fields: ctx, userID

func (*ServiceInterface) GetUserChannels added in v0.1.0

func (_m *ServiceInterface) GetUserChannels(ctx context.Context, userID int32) ([]models.GetUserChannelsRow, error)

GetUserChannels provides a mock function with given fields: ctx, userID

func (*ServiceInterface) GetUserNoregDetails added in v0.4.0

func (_m *ServiceInterface) GetUserNoregDetails(ctx context.Context, lower string) (models.GetUserNoregDetailsRow, error)

GetUserNoregDetails provides a mock function with given fields: ctx, lower

func (*ServiceInterface) GetUserPendingRegistrations added in v0.4.0

func (_m *ServiceInterface) GetUserPendingRegistrations(ctx context.Context, managerID pgtype.Int4) (int64, error)

GetUserPendingRegistrations provides a mock function with given fields: ctx, managerID

func (*ServiceInterface) GetUsersByUsernames added in v0.1.0

func (_m *ServiceInterface) GetUsersByUsernames(ctx context.Context, userids []string) ([]models.GetUsersByUsernamesRow, error)

GetUsersByUsernames provides a mock function with given fields: ctx, userids

func (*ServiceInterface) GetWhiteListByIP added in v0.1.0

func (_m *ServiceInterface) GetWhiteListByIP(ctx context.Context, ip netip.Addr) (models.Whitelist, error)

GetWhiteListByIP provides a mock function with given fields: ctx, ip

func (*ServiceInterface) InsertManagerChangeRequest added in v0.4.1

func (_m *ServiceInterface) InsertManagerChangeRequest(ctx context.Context, arg models.InsertManagerChangeRequestParams) (pgtype.Int4, error)

InsertManagerChangeRequest provides a mock function with given fields: ctx, arg

func (*ServiceInterface) InvalidateUserPasswordResetTokens added in v0.3.0

func (_m *ServiceInterface) InvalidateUserPasswordResetTokens(ctx context.Context, userID pgtype.Int4, lastUpdated int32) error

InvalidateUserPasswordResetTokens provides a mock function with given fields: ctx, userID, lastUpdated

func (*ServiceInterface) ListPendingUsers added in v0.1.0

func (_m *ServiceInterface) ListPendingUsers(ctx context.Context) ([]models.Pendinguser, error)

ListPendingUsers provides a mock function with given fields: ctx

func (*ServiceInterface) ListRoles added in v0.1.0

func (_m *ServiceInterface) ListRoles(ctx context.Context) ([]models.Role, error)

ListRoles provides a mock function with given fields: ctx

func (*ServiceInterface) ListUserRoles added in v0.1.0

func (_m *ServiceInterface) ListUserRoles(ctx context.Context, userID int32) ([]models.Role, error)

ListUserRoles provides a mock function with given fields: ctx, userID

func (*ServiceInterface) MarkBackupCodesAsRead added in v0.4.1

func (_m *ServiceInterface) MarkBackupCodesAsRead(ctx context.Context, arg models.MarkBackupCodesAsReadParams) error

MarkBackupCodesAsRead provides a mock function with given fields: ctx, arg

func (*ServiceInterface) MarkPasswordResetTokenAsUsed added in v0.3.0

func (_m *ServiceInterface) MarkPasswordResetTokenAsUsed(ctx context.Context, arg models.MarkPasswordResetTokenAsUsedParams) error

MarkPasswordResetTokenAsUsed provides a mock function with given fields: ctx, arg

func (*ServiceInterface) RemoveChannelMember added in v0.3.0

RemoveChannelMember provides a mock function with given fields: ctx, arg

func (*ServiceInterface) RemoveUserRole added in v0.1.0

func (_m *ServiceInterface) RemoveUserRole(ctx context.Context, userID int32, roleID int32) error

RemoveUserRole provides a mock function with given fields: ctx, userID, roleID

func (*ServiceInterface) RemoveUsersFromRole added in v0.1.0

func (_m *ServiceInterface) RemoveUsersFromRole(ctx context.Context, userIds []int32, roleID int32) error

RemoveUsersFromRole provides a mock function with given fields: ctx, userIds, roleID

func (*ServiceInterface) SearchChannels added in v0.3.0

SearchChannels provides a mock function with given fields: ctx, arg

func (*ServiceInterface) SearchChannelsCount added in v0.3.0

func (_m *ServiceInterface) SearchChannelsCount(ctx context.Context, name string) (int64, error)

SearchChannelsCount provides a mock function with given fields: ctx, name

func (*ServiceInterface) SoftDeleteChannel added in v0.4.0

func (_m *ServiceInterface) SoftDeleteChannel(ctx context.Context, id int32) error

SoftDeleteChannel provides a mock function with given fields: ctx, id

func (*ServiceInterface) UpdateChannelRegistrationStatus added in v0.4.0

func (_m *ServiceInterface) UpdateChannelRegistrationStatus(ctx context.Context, id int32) error

UpdateChannelRegistrationStatus provides a mock function with given fields: ctx, id

func (*ServiceInterface) UpdateChannelSettings added in v0.3.0

UpdateChannelSettings provides a mock function with given fields: ctx, arg

func (*ServiceInterface) UpdatePendingChannelDescription added in v0.4.0

func (_m *ServiceInterface) UpdatePendingChannelDescription(ctx context.Context, channelID int32, description pgtype.Text) error

UpdatePendingChannelDescription provides a mock function with given fields: ctx, channelID, description

func (*ServiceInterface) UpdatePendingChannelStatus added in v0.4.0

UpdatePendingChannelStatus provides a mock function with given fields: ctx, arg

func (*ServiceInterface) UpdateRole added in v0.1.0

func (_m *ServiceInterface) UpdateRole(ctx context.Context, arg models.UpdateRoleParams) error

UpdateRole provides a mock function with given fields: ctx, arg

func (*ServiceInterface) UpdateUserBackupCodes added in v0.4.1

func (_m *ServiceInterface) UpdateUserBackupCodes(ctx context.Context, arg models.UpdateUserBackupCodesParams) error

UpdateUserBackupCodes provides a mock function with given fields: ctx, arg

func (*ServiceInterface) UpdateUserCooldown added in v0.4.1

func (_m *ServiceInterface) UpdateUserCooldown(ctx context.Context, iD int32, column2 interface{}) error

UpdateUserCooldown provides a mock function with given fields: ctx, iD, column2

func (*ServiceInterface) UpdateUserFlags added in v0.2.0

func (_m *ServiceInterface) UpdateUserFlags(ctx context.Context, arg models.UpdateUserFlagsParams) error

UpdateUserFlags provides a mock function with given fields: ctx, arg

func (*ServiceInterface) UpdateUserLastSeen added in v0.4.0

func (_m *ServiceInterface) UpdateUserLastSeen(ctx context.Context, userID int32) error

UpdateUserLastSeen provides a mock function with given fields: ctx, userID

func (*ServiceInterface) UpdateUserPassword added in v0.2.0

func (_m *ServiceInterface) UpdateUserPassword(ctx context.Context, arg models.UpdateUserPasswordParams) error

UpdateUserPassword provides a mock function with given fields: ctx, arg

func (*ServiceInterface) UpdateUserTotpKey added in v0.2.0

func (_m *ServiceInterface) UpdateUserTotpKey(ctx context.Context, arg models.UpdateUserTotpKeyParams) error

UpdateUserTotpKey provides a mock function with given fields: ctx, arg

func (*ServiceInterface) ValidatePasswordResetToken added in v0.3.0

func (_m *ServiceInterface) ValidatePasswordResetToken(ctx context.Context, token string, expiresAt int32) (models.PasswordResetToken, error)

ValidatePasswordResetToken provides a mock function with given fields: ctx, token, expiresAt

func (*ServiceInterface) WithTx added in v0.1.0

WithTx provides a mock function with given fields: tx

Jump to

Keyboard shortcuts

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