mock_repository

package
v0.0.0-...-2e419a0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_repository is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAdvertiserPrivilegesRepository

type MockAdvertiserPrivilegesRepository struct {
	// contains filtered or unexported fields
}

MockAdvertiserPrivilegesRepository is a mock of AdvertiserPrivilegesRepository interface.

func NewMockAdvertiserPrivilegesRepository

func NewMockAdvertiserPrivilegesRepository(ctrl *gomock.Controller) *MockAdvertiserPrivilegesRepository

NewMockAdvertiserPrivilegesRepository creates a new mock instance.

func (*MockAdvertiserPrivilegesRepository) DeleteAdvertiserPrivileges

func (m *MockAdvertiserPrivilegesRepository) DeleteAdvertiserPrivileges(privileges *repository.AdvertiserPrivileges) error

DeleteAdvertiserPrivileges mocks base method.

func (*MockAdvertiserPrivilegesRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAdvertiserPrivilegesRepository) GetAdvertiserPrivilegesForGuild

func (m *MockAdvertiserPrivilegesRepository) GetAdvertiserPrivilegesForGuild(guildID string) ([]*repository.AdvertiserPrivileges, error)

GetAdvertiserPrivilegesForGuild mocks base method.

func (*MockAdvertiserPrivilegesRepository) GetAdvertiserPrivilegesForRole

func (m *MockAdvertiserPrivilegesRepository) GetAdvertiserPrivilegesForRole(guildID, roleID string) (*repository.AdvertiserPrivileges, error)

GetAdvertiserPrivilegesForRole mocks base method.

func (*MockAdvertiserPrivilegesRepository) InsertAdvertiserPrivileges

func (m *MockAdvertiserPrivilegesRepository) InsertAdvertiserPrivileges(privileges *repository.AdvertiserPrivileges) error

InsertAdvertiserPrivileges mocks base method.

type MockAdvertiserPrivilegesRepositoryMockRecorder

type MockAdvertiserPrivilegesRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockAdvertiserPrivilegesRepositoryMockRecorder is the mock recorder for MockAdvertiserPrivilegesRepository.

func (*MockAdvertiserPrivilegesRepositoryMockRecorder) DeleteAdvertiserPrivileges

func (mr *MockAdvertiserPrivilegesRepositoryMockRecorder) DeleteAdvertiserPrivileges(privileges interface{}) *gomock.Call

DeleteAdvertiserPrivileges indicates an expected call of DeleteAdvertiserPrivileges.

func (*MockAdvertiserPrivilegesRepositoryMockRecorder) GetAdvertiserPrivilegesForGuild

func (mr *MockAdvertiserPrivilegesRepositoryMockRecorder) GetAdvertiserPrivilegesForGuild(guildID interface{}) *gomock.Call

GetAdvertiserPrivilegesForGuild indicates an expected call of GetAdvertiserPrivilegesForGuild.

func (*MockAdvertiserPrivilegesRepositoryMockRecorder) GetAdvertiserPrivilegesForRole

func (mr *MockAdvertiserPrivilegesRepositoryMockRecorder) GetAdvertiserPrivilegesForRole(guildID, roleID interface{}) *gomock.Call

GetAdvertiserPrivilegesForRole indicates an expected call of GetAdvertiserPrivilegesForRole.

func (*MockAdvertiserPrivilegesRepositoryMockRecorder) InsertAdvertiserPrivileges

func (mr *MockAdvertiserPrivilegesRepositoryMockRecorder) InsertAdvertiserPrivileges(privileges interface{}) *gomock.Call

InsertAdvertiserPrivileges indicates an expected call of InsertAdvertiserPrivileges.

type MockApiKeyRepository

type MockApiKeyRepository struct {
	// contains filtered or unexported fields
}

MockApiKeyRepository is a mock of ApiKeyRepository interface.

func NewMockApiKeyRepository

func NewMockApiKeyRepository(ctrl *gomock.Controller) *MockApiKeyRepository

NewMockApiKeyRepository creates a new mock instance.

func (*MockApiKeyRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockApiKeyRepository) GetAPIKey

func (m *MockApiKeyRepository) GetAPIKey(key string) (*repository.APIKey, error)

GetAPIKey mocks base method.

func (*MockApiKeyRepository) NewAPIKey

func (m *MockApiKeyRepository) NewAPIKey(guildID string) (*repository.APIKey, error)

NewAPIKey mocks base method.

type MockApiKeyRepositoryMockRecorder

type MockApiKeyRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockApiKeyRepositoryMockRecorder is the mock recorder for MockApiKeyRepository.

func (*MockApiKeyRepositoryMockRecorder) GetAPIKey

func (mr *MockApiKeyRepositoryMockRecorder) GetAPIKey(key interface{}) *gomock.Call

GetAPIKey indicates an expected call of GetAPIKey.

func (*MockApiKeyRepositoryMockRecorder) NewAPIKey

func (mr *MockApiKeyRepositoryMockRecorder) NewAPIKey(guildID interface{}) *gomock.Call

NewAPIKey indicates an expected call of NewAPIKey.

type MockAutoSignupSessionRepository

type MockAutoSignupSessionRepository struct {
	// contains filtered or unexported fields
}

MockAutoSignupSessionRepository is a mock of AutoSignupSessionRepository interface.

func NewMockAutoSignupSessionRepository

func NewMockAutoSignupSessionRepository(ctrl *gomock.Controller) *MockAutoSignupSessionRepository

NewMockAutoSignupSessionRepository creates a new mock instance.

func (*MockAutoSignupSessionRepository) CancelAutoSignup

func (m *MockAutoSignupSessionRepository) CancelAutoSignup(guildID, advertiserID string) error

CancelAutoSignup mocks base method.

func (*MockAutoSignupSessionRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAutoSignupSessionRepository) EnableAutoSignup

func (m *MockAutoSignupSessionRepository) EnableAutoSignup(guildID, advertiserID string, expiresAt time.Time) (*repository.AutoSignupSession, error)

EnableAutoSignup mocks base method.

func (*MockAutoSignupSessionRepository) GetAutoSignupDelayedMessageIDs

func (m *MockAutoSignupSessionRepository) GetAutoSignupDelayedMessageIDs(guildID, advertiserID string) ([]int64, error)

GetAutoSignupDelayedMessageIDs mocks base method.

func (*MockAutoSignupSessionRepository) GetEnabledAutoSignups

func (m *MockAutoSignupSessionRepository) GetEnabledAutoSignups() ([]*repository.AutoSignupSession, error)

GetEnabledAutoSignups mocks base method.

func (*MockAutoSignupSessionRepository) GetEnabledAutoSignupsInGuild

func (m *MockAutoSignupSessionRepository) GetEnabledAutoSignupsInGuild(guildID string) ([]*repository.AutoSignupSession, error)

GetEnabledAutoSignupsInGuild mocks base method.

func (*MockAutoSignupSessionRepository) InsertAutoSignupDelayedMessages

func (m *MockAutoSignupSessionRepository) InsertAutoSignupDelayedMessages(autoSignup *repository.AutoSignupSession, delayedMessages []*repository.DelayedMessage) error

InsertAutoSignupDelayedMessages mocks base method.

func (*MockAutoSignupSessionRepository) IsAutoSignupEnabled

func (m *MockAutoSignupSessionRepository) IsAutoSignupEnabled(guildID, advertiserID string) (bool, error)

IsAutoSignupEnabled mocks base method.

type MockAutoSignupSessionRepositoryMockRecorder

type MockAutoSignupSessionRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockAutoSignupSessionRepositoryMockRecorder is the mock recorder for MockAutoSignupSessionRepository.

func (*MockAutoSignupSessionRepositoryMockRecorder) CancelAutoSignup

func (mr *MockAutoSignupSessionRepositoryMockRecorder) CancelAutoSignup(guildID, advertiserID interface{}) *gomock.Call

CancelAutoSignup indicates an expected call of CancelAutoSignup.

func (*MockAutoSignupSessionRepositoryMockRecorder) EnableAutoSignup

func (mr *MockAutoSignupSessionRepositoryMockRecorder) EnableAutoSignup(guildID, advertiserID, expiresAt interface{}) *gomock.Call

EnableAutoSignup indicates an expected call of EnableAutoSignup.

func (*MockAutoSignupSessionRepositoryMockRecorder) GetAutoSignupDelayedMessageIDs

func (mr *MockAutoSignupSessionRepositoryMockRecorder) GetAutoSignupDelayedMessageIDs(guildID, advertiserID interface{}) *gomock.Call

GetAutoSignupDelayedMessageIDs indicates an expected call of GetAutoSignupDelayedMessageIDs.

func (*MockAutoSignupSessionRepositoryMockRecorder) GetEnabledAutoSignups

func (mr *MockAutoSignupSessionRepositoryMockRecorder) GetEnabledAutoSignups() *gomock.Call

GetEnabledAutoSignups indicates an expected call of GetEnabledAutoSignups.

func (*MockAutoSignupSessionRepositoryMockRecorder) GetEnabledAutoSignupsInGuild

func (mr *MockAutoSignupSessionRepositoryMockRecorder) GetEnabledAutoSignupsInGuild(guildID interface{}) *gomock.Call

GetEnabledAutoSignupsInGuild indicates an expected call of GetEnabledAutoSignupsInGuild.

func (*MockAutoSignupSessionRepositoryMockRecorder) InsertAutoSignupDelayedMessages

func (mr *MockAutoSignupSessionRepositoryMockRecorder) InsertAutoSignupDelayedMessages(autoSignup, delayedMessages interface{}) *gomock.Call

InsertAutoSignupDelayedMessages indicates an expected call of InsertAutoSignupDelayedMessages.

func (*MockAutoSignupSessionRepositoryMockRecorder) IsAutoSignupEnabled

func (mr *MockAutoSignupSessionRepositoryMockRecorder) IsAutoSignupEnabled(guildID, advertiserID interface{}) *gomock.Call

IsAutoSignupEnabled indicates an expected call of IsAutoSignupEnabled.

type MockBoostRequestChannelRepository

type MockBoostRequestChannelRepository struct {
	// contains filtered or unexported fields
}

MockBoostRequestChannelRepository is a mock of BoostRequestChannelRepository interface.

func NewMockBoostRequestChannelRepository

func NewMockBoostRequestChannelRepository(ctrl *gomock.Controller) *MockBoostRequestChannelRepository

NewMockBoostRequestChannelRepository creates a new mock instance.

func (*MockBoostRequestChannelRepository) DeleteBoostRequestChannel

func (m *MockBoostRequestChannelRepository) DeleteBoostRequestChannel(brc *repository.BoostRequestChannel) error

DeleteBoostRequestChannel mocks base method.

func (*MockBoostRequestChannelRepository) DeleteBoostRequestChannelsInGuild

func (m *MockBoostRequestChannelRepository) DeleteBoostRequestChannelsInGuild(guildID string) error

DeleteBoostRequestChannelsInGuild mocks base method.

func (*MockBoostRequestChannelRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBoostRequestChannelRepository) GetBoostRequestChannelByFrontendChannelID

func (m *MockBoostRequestChannelRepository) GetBoostRequestChannelByFrontendChannelID(guildID, frontendChannelID string) (*repository.BoostRequestChannel, error)

GetBoostRequestChannelByFrontendChannelID mocks base method.

func (*MockBoostRequestChannelRepository) GetBoostRequestChannels

func (m *MockBoostRequestChannelRepository) GetBoostRequestChannels(guildID string) ([]*repository.BoostRequestChannel, error)

GetBoostRequestChannels mocks base method.

func (*MockBoostRequestChannelRepository) InsertBoostRequestChannel

func (m *MockBoostRequestChannelRepository) InsertBoostRequestChannel(brc *repository.BoostRequestChannel) error

InsertBoostRequestChannel mocks base method.

type MockBoostRequestChannelRepositoryMockRecorder

type MockBoostRequestChannelRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockBoostRequestChannelRepositoryMockRecorder is the mock recorder for MockBoostRequestChannelRepository.

func (*MockBoostRequestChannelRepositoryMockRecorder) DeleteBoostRequestChannel

func (mr *MockBoostRequestChannelRepositoryMockRecorder) DeleteBoostRequestChannel(brc interface{}) *gomock.Call

DeleteBoostRequestChannel indicates an expected call of DeleteBoostRequestChannel.

func (*MockBoostRequestChannelRepositoryMockRecorder) DeleteBoostRequestChannelsInGuild

func (mr *MockBoostRequestChannelRepositoryMockRecorder) DeleteBoostRequestChannelsInGuild(guildID interface{}) *gomock.Call

DeleteBoostRequestChannelsInGuild indicates an expected call of DeleteBoostRequestChannelsInGuild.

func (*MockBoostRequestChannelRepositoryMockRecorder) GetBoostRequestChannelByFrontendChannelID

func (mr *MockBoostRequestChannelRepositoryMockRecorder) GetBoostRequestChannelByFrontendChannelID(guildID, frontendChannelID interface{}) *gomock.Call

GetBoostRequestChannelByFrontendChannelID indicates an expected call of GetBoostRequestChannelByFrontendChannelID.

func (*MockBoostRequestChannelRepositoryMockRecorder) GetBoostRequestChannels

func (mr *MockBoostRequestChannelRepositoryMockRecorder) GetBoostRequestChannels(guildID interface{}) *gomock.Call

GetBoostRequestChannels indicates an expected call of GetBoostRequestChannels.

func (*MockBoostRequestChannelRepositoryMockRecorder) InsertBoostRequestChannel

func (mr *MockBoostRequestChannelRepositoryMockRecorder) InsertBoostRequestChannel(brc interface{}) *gomock.Call

InsertBoostRequestChannel indicates an expected call of InsertBoostRequestChannel.

type MockBoostRequestRepository

type MockBoostRequestRepository struct {
	// contains filtered or unexported fields
}

MockBoostRequestRepository is a mock of BoostRequestRepository interface.

func NewMockBoostRequestRepository

func NewMockBoostRequestRepository(ctrl *gomock.Controller) *MockBoostRequestRepository

NewMockBoostRequestRepository creates a new mock instance.

func (*MockBoostRequestRepository) DeleteBoostRequest

func (m *MockBoostRequestRepository) DeleteBoostRequest(br *repository.BoostRequest) error

DeleteBoostRequest mocks base method.

func (*MockBoostRequestRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBoostRequestRepository) GetBoostRequestByBackendMessageID

func (m *MockBoostRequestRepository) GetBoostRequestByBackendMessageID(backendChannelID, backendMessageID string) (*repository.BoostRequest, error)

GetBoostRequestByBackendMessageID mocks base method.

func (*MockBoostRequestRepository) GetBoostRequestById

func (m *MockBoostRequestRepository) GetBoostRequestById(guildID string, boostRequestID uuid.UUID) (*repository.BoostRequest, error)

GetBoostRequestById mocks base method.

func (*MockBoostRequestRepository) GetBoostRequestDelayedMessageIDs

func (m *MockBoostRequestRepository) GetBoostRequestDelayedMessageIDs(br *repository.BoostRequest) ([]int64, error)

GetBoostRequestDelayedMessageIDs mocks base method.

func (*MockBoostRequestRepository) GetUnresolvedBoostRequests

func (m *MockBoostRequestRepository) GetUnresolvedBoostRequests() ([]*repository.BoostRequest, error)

GetUnresolvedBoostRequests mocks base method.

func (*MockBoostRequestRepository) InsertBoostRequest

func (m *MockBoostRequestRepository) InsertBoostRequest(br *repository.BoostRequest) error

InsertBoostRequest mocks base method.

func (*MockBoostRequestRepository) InsertBoostRequestDelayedMessage

func (m *MockBoostRequestRepository) InsertBoostRequestDelayedMessage(br *repository.BoostRequest, delayedMessage *repository.DelayedMessage) error

InsertBoostRequestDelayedMessage mocks base method.

func (*MockBoostRequestRepository) ResolveBoostRequest

func (m *MockBoostRequestRepository) ResolveBoostRequest(br *repository.BoostRequest) error

ResolveBoostRequest mocks base method.

type MockBoostRequestRepositoryMockRecorder

type MockBoostRequestRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockBoostRequestRepositoryMockRecorder is the mock recorder for MockBoostRequestRepository.

func (*MockBoostRequestRepositoryMockRecorder) DeleteBoostRequest

func (mr *MockBoostRequestRepositoryMockRecorder) DeleteBoostRequest(br interface{}) *gomock.Call

DeleteBoostRequest indicates an expected call of DeleteBoostRequest.

func (*MockBoostRequestRepositoryMockRecorder) GetBoostRequestByBackendMessageID

func (mr *MockBoostRequestRepositoryMockRecorder) GetBoostRequestByBackendMessageID(backendChannelID, backendMessageID interface{}) *gomock.Call

GetBoostRequestByBackendMessageID indicates an expected call of GetBoostRequestByBackendMessageID.

func (*MockBoostRequestRepositoryMockRecorder) GetBoostRequestById

func (mr *MockBoostRequestRepositoryMockRecorder) GetBoostRequestById(guildID, boostRequestID interface{}) *gomock.Call

GetBoostRequestById indicates an expected call of GetBoostRequestById.

func (*MockBoostRequestRepositoryMockRecorder) GetBoostRequestDelayedMessageIDs

func (mr *MockBoostRequestRepositoryMockRecorder) GetBoostRequestDelayedMessageIDs(br interface{}) *gomock.Call

GetBoostRequestDelayedMessageIDs indicates an expected call of GetBoostRequestDelayedMessageIDs.

func (*MockBoostRequestRepositoryMockRecorder) GetUnresolvedBoostRequests

func (mr *MockBoostRequestRepositoryMockRecorder) GetUnresolvedBoostRequests() *gomock.Call

GetUnresolvedBoostRequests indicates an expected call of GetUnresolvedBoostRequests.

func (*MockBoostRequestRepositoryMockRecorder) InsertBoostRequest

func (mr *MockBoostRequestRepositoryMockRecorder) InsertBoostRequest(br interface{}) *gomock.Call

InsertBoostRequest indicates an expected call of InsertBoostRequest.

func (*MockBoostRequestRepositoryMockRecorder) InsertBoostRequestDelayedMessage

func (mr *MockBoostRequestRepositoryMockRecorder) InsertBoostRequestDelayedMessage(br, delayedMessage interface{}) *gomock.Call

InsertBoostRequestDelayedMessage indicates an expected call of InsertBoostRequestDelayedMessage.

func (*MockBoostRequestRepositoryMockRecorder) ResolveBoostRequest

func (mr *MockBoostRequestRepositoryMockRecorder) ResolveBoostRequest(br interface{}) *gomock.Call

ResolveBoostRequest indicates an expected call of ResolveBoostRequest.

type MockDelayedMessageRepository

type MockDelayedMessageRepository struct {
	// contains filtered or unexported fields
}

MockDelayedMessageRepository is a mock of DelayedMessageRepository interface.

func NewMockDelayedMessageRepository

func NewMockDelayedMessageRepository(ctrl *gomock.Controller) *MockDelayedMessageRepository

NewMockDelayedMessageRepository creates a new mock instance.

func (*MockDelayedMessageRepository) DeleteDelayedMessage

func (m *MockDelayedMessageRepository) DeleteDelayedMessage(id int64) error

DeleteDelayedMessage mocks base method.

func (*MockDelayedMessageRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDelayedMessageRepository) FlagDelayedMessageAsSent

func (m *MockDelayedMessageRepository) FlagDelayedMessageAsSent(message *repository.DelayedMessage) error

FlagDelayedMessageAsSent mocks base method.

func (*MockDelayedMessageRepository) GetDelayedMessages

func (m *MockDelayedMessageRepository) GetDelayedMessages() ([]*repository.DelayedMessage, error)

GetDelayedMessages mocks base method.

func (*MockDelayedMessageRepository) InsertDelayedMessage

func (m *MockDelayedMessageRepository) InsertDelayedMessage(delayedMessage *repository.DelayedMessage) error

InsertDelayedMessage mocks base method.

type MockDelayedMessageRepositoryMockRecorder

type MockDelayedMessageRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockDelayedMessageRepositoryMockRecorder is the mock recorder for MockDelayedMessageRepository.

func (*MockDelayedMessageRepositoryMockRecorder) DeleteDelayedMessage

func (mr *MockDelayedMessageRepositoryMockRecorder) DeleteDelayedMessage(id interface{}) *gomock.Call

DeleteDelayedMessage indicates an expected call of DeleteDelayedMessage.

func (*MockDelayedMessageRepositoryMockRecorder) FlagDelayedMessageAsSent

func (mr *MockDelayedMessageRepositoryMockRecorder) FlagDelayedMessageAsSent(message interface{}) *gomock.Call

FlagDelayedMessageAsSent indicates an expected call of FlagDelayedMessageAsSent.

func (*MockDelayedMessageRepositoryMockRecorder) GetDelayedMessages

func (mr *MockDelayedMessageRepositoryMockRecorder) GetDelayedMessages() *gomock.Call

GetDelayedMessages indicates an expected call of GetDelayedMessages.

func (*MockDelayedMessageRepositoryMockRecorder) InsertDelayedMessage

func (mr *MockDelayedMessageRepositoryMockRecorder) InsertDelayedMessage(delayedMessage interface{}) *gomock.Call

InsertDelayedMessage indicates an expected call of InsertDelayedMessage.

type MockLogChannelRepository

type MockLogChannelRepository struct {
	// contains filtered or unexported fields
}

MockLogChannelRepository is a mock of LogChannelRepository interface.

func NewMockLogChannelRepository

func NewMockLogChannelRepository(ctrl *gomock.Controller) *MockLogChannelRepository

NewMockLogChannelRepository creates a new mock instance.

func (*MockLogChannelRepository) DeleteLogChannel

func (m *MockLogChannelRepository) DeleteLogChannel(guildID string) error

DeleteLogChannel mocks base method.

func (*MockLogChannelRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLogChannelRepository) GetLogChannel

func (m *MockLogChannelRepository) GetLogChannel(guildID string) (string, error)

GetLogChannel mocks base method.

func (*MockLogChannelRepository) InsertLogChannel

func (m *MockLogChannelRepository) InsertLogChannel(guildID, channelID string) error

InsertLogChannel mocks base method.

type MockLogChannelRepositoryMockRecorder

type MockLogChannelRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockLogChannelRepositoryMockRecorder is the mock recorder for MockLogChannelRepository.

func (*MockLogChannelRepositoryMockRecorder) DeleteLogChannel

func (mr *MockLogChannelRepositoryMockRecorder) DeleteLogChannel(guildID interface{}) *gomock.Call

DeleteLogChannel indicates an expected call of DeleteLogChannel.

func (*MockLogChannelRepositoryMockRecorder) GetLogChannel

func (mr *MockLogChannelRepositoryMockRecorder) GetLogChannel(guildID interface{}) *gomock.Call

GetLogChannel indicates an expected call of GetLogChannel.

func (*MockLogChannelRepositoryMockRecorder) InsertLogChannel

func (mr *MockLogChannelRepositoryMockRecorder) InsertLogChannel(guildID, channelID interface{}) *gomock.Call

InsertLogChannel indicates an expected call of InsertLogChannel.

type MockRepository

type MockRepository struct {
	// contains filtered or unexported fields
}

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) AdjustStealCreditsForUser

func (m *MockRepository) AdjustStealCreditsForUser(guildID, userID string, operation repository.Operation, amount int) error

AdjustStealCreditsForUser mocks base method.

func (*MockRepository) CancelAutoSignup

func (m *MockRepository) CancelAutoSignup(guildID, advertiserID string) error

CancelAutoSignup mocks base method.

func (*MockRepository) DeleteAdvertiserPrivileges

func (m *MockRepository) DeleteAdvertiserPrivileges(privileges *repository.AdvertiserPrivileges) error

DeleteAdvertiserPrivileges mocks base method.

func (*MockRepository) DeleteBoostRequest

func (m *MockRepository) DeleteBoostRequest(br *repository.BoostRequest) error

DeleteBoostRequest mocks base method.

func (*MockRepository) DeleteBoostRequestChannel

func (m *MockRepository) DeleteBoostRequestChannel(brc *repository.BoostRequestChannel) error

DeleteBoostRequestChannel mocks base method.

func (*MockRepository) DeleteBoostRequestChannelsInGuild

func (m *MockRepository) DeleteBoostRequestChannelsInGuild(guildID string) error

DeleteBoostRequestChannelsInGuild mocks base method.

func (*MockRepository) DeleteDelayedMessage

func (m *MockRepository) DeleteDelayedMessage(id int64) error

DeleteDelayedMessage mocks base method.

func (*MockRepository) DeleteLogChannel

func (m *MockRepository) DeleteLogChannel(guildID string) error

DeleteLogChannel mocks base method.

func (*MockRepository) DeleteRollChannel

func (m *MockRepository) DeleteRollChannel(guildID string) error

DeleteRollChannel mocks base method.

func (*MockRepository) DeleteWebhook

func (m *MockRepository) DeleteWebhook(Webhook repository.Webhook) error

DeleteWebhook mocks base method.

func (*MockRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRepository) EnableAutoSignup

func (m *MockRepository) EnableAutoSignup(guildID, advertiserID string, expiresAt time.Time) (*repository.AutoSignupSession, error)

EnableAutoSignup mocks base method.

func (*MockRepository) FlagDelayedMessageAsSent

func (m *MockRepository) FlagDelayedMessageAsSent(message *repository.DelayedMessage) error

FlagDelayedMessageAsSent mocks base method.

func (*MockRepository) GetAPIKey

func (m *MockRepository) GetAPIKey(key string) (*repository.APIKey, error)

GetAPIKey mocks base method.

func (*MockRepository) GetAdvertiserPrivilegesForGuild

func (m *MockRepository) GetAdvertiserPrivilegesForGuild(guildID string) ([]*repository.AdvertiserPrivileges, error)

GetAdvertiserPrivilegesForGuild mocks base method.

func (*MockRepository) GetAdvertiserPrivilegesForRole

func (m *MockRepository) GetAdvertiserPrivilegesForRole(guildID, roleID string) (*repository.AdvertiserPrivileges, error)

GetAdvertiserPrivilegesForRole mocks base method.

func (*MockRepository) GetAutoSignupDelayedMessageIDs

func (m *MockRepository) GetAutoSignupDelayedMessageIDs(guildID, advertiserID string) ([]int64, error)

GetAutoSignupDelayedMessageIDs mocks base method.

func (*MockRepository) GetBoostRequestByBackendMessageID

func (m *MockRepository) GetBoostRequestByBackendMessageID(backendChannelID, backendMessageID string) (*repository.BoostRequest, error)

GetBoostRequestByBackendMessageID mocks base method.

func (*MockRepository) GetBoostRequestById

func (m *MockRepository) GetBoostRequestById(guildID string, boostRequestID uuid.UUID) (*repository.BoostRequest, error)

GetBoostRequestById mocks base method.

func (*MockRepository) GetBoostRequestChannelByFrontendChannelID

func (m *MockRepository) GetBoostRequestChannelByFrontendChannelID(guildID, frontendChannelID string) (*repository.BoostRequestChannel, error)

GetBoostRequestChannelByFrontendChannelID mocks base method.

func (*MockRepository) GetBoostRequestChannels

func (m *MockRepository) GetBoostRequestChannels(guildID string) ([]*repository.BoostRequestChannel, error)

GetBoostRequestChannels mocks base method.

func (*MockRepository) GetBoostRequestDelayedMessageIDs

func (m *MockRepository) GetBoostRequestDelayedMessageIDs(br *repository.BoostRequest) ([]int64, error)

GetBoostRequestDelayedMessageIDs mocks base method.

func (*MockRepository) GetDelayedMessages

func (m *MockRepository) GetDelayedMessages() ([]*repository.DelayedMessage, error)

GetDelayedMessages mocks base method.

func (*MockRepository) GetEnabledAutoSignups

func (m *MockRepository) GetEnabledAutoSignups() ([]*repository.AutoSignupSession, error)

GetEnabledAutoSignups mocks base method.

func (*MockRepository) GetEnabledAutoSignupsInGuild

func (m *MockRepository) GetEnabledAutoSignupsInGuild(guildID string) ([]*repository.AutoSignupSession, error)

GetEnabledAutoSignupsInGuild mocks base method.

func (*MockRepository) GetGlobalStealCreditsForUser

func (m *MockRepository) GetGlobalStealCreditsForUser(userID string) (map[string]int, error)

GetGlobalStealCreditsForUser mocks base method.

func (*MockRepository) GetLogChannel

func (m *MockRepository) GetLogChannel(guildID string) (string, error)

GetLogChannel mocks base method.

func (*MockRepository) GetQueuedWebhooks

func (m *MockRepository) GetQueuedWebhooks() ([]*repository.QueuedWebhookRequest, error)

GetQueuedWebhooks mocks base method.

func (*MockRepository) GetRollChannel

func (m *MockRepository) GetRollChannel(guildID string) (string, error)

GetRollChannel mocks base method.

func (*MockRepository) GetStealCreditsForUser

func (m *MockRepository) GetStealCreditsForUser(guildID, userID string) (int, error)

GetStealCreditsForUser mocks base method.

func (*MockRepository) GetUnresolvedBoostRequests

func (m *MockRepository) GetUnresolvedBoostRequests() ([]*repository.BoostRequest, error)

GetUnresolvedBoostRequests mocks base method.

func (*MockRepository) GetWebhook

func (m *MockRepository) GetWebhook(guildId string) (repository.Webhook, error)

GetWebhook mocks base method.

func (*MockRepository) InsertAdvertiserPrivileges

func (m *MockRepository) InsertAdvertiserPrivileges(privileges *repository.AdvertiserPrivileges) error

InsertAdvertiserPrivileges mocks base method.

func (*MockRepository) InsertAutoSignupDelayedMessages

func (m *MockRepository) InsertAutoSignupDelayedMessages(autoSignup *repository.AutoSignupSession, delayedMessages []*repository.DelayedMessage) error

InsertAutoSignupDelayedMessages mocks base method.

func (*MockRepository) InsertBoostRequest

func (m *MockRepository) InsertBoostRequest(br *repository.BoostRequest) error

InsertBoostRequest mocks base method.

func (*MockRepository) InsertBoostRequestChannel

func (m *MockRepository) InsertBoostRequestChannel(brc *repository.BoostRequestChannel) error

InsertBoostRequestChannel mocks base method.

func (*MockRepository) InsertBoostRequestDelayedMessage

func (m *MockRepository) InsertBoostRequestDelayedMessage(br *repository.BoostRequest, delayedMessage *repository.DelayedMessage) error

InsertBoostRequestDelayedMessage mocks base method.

func (*MockRepository) InsertDelayedMessage

func (m *MockRepository) InsertDelayedMessage(delayedMessage *repository.DelayedMessage) error

InsertDelayedMessage mocks base method.

func (*MockRepository) InsertLogChannel

func (m *MockRepository) InsertLogChannel(guildID, channelID string) error

InsertLogChannel mocks base method.

func (*MockRepository) InsertQueuedWebhook

func (m *MockRepository) InsertQueuedWebhook(webhook repository.Webhook, body string) error

InsertQueuedWebhook mocks base method.

func (*MockRepository) InsertRollChannel

func (m *MockRepository) InsertRollChannel(guildID, channelID string) error

InsertRollChannel mocks base method.

func (*MockRepository) InsertWebhook

func (m *MockRepository) InsertWebhook(webhook repository.Webhook) error

InsertWebhook mocks base method.

func (*MockRepository) InsertWebhookAttempt

func (m *MockRepository) InsertWebhookAttempt(attempt repository.WebhookAttempt) error

InsertWebhookAttempt mocks base method.

func (*MockRepository) IsAutoSignupEnabled

func (m *MockRepository) IsAutoSignupEnabled(guildID, advertiserID string) (bool, error)

IsAutoSignupEnabled mocks base method.

func (*MockRepository) NewAPIKey

func (m *MockRepository) NewAPIKey(guildID string) (*repository.APIKey, error)

NewAPIKey mocks base method.

func (*MockRepository) ResolveBoostRequest

func (m *MockRepository) ResolveBoostRequest(br *repository.BoostRequest) error

ResolveBoostRequest mocks base method.

func (*MockRepository) UpdateStealCreditsForUser

func (m *MockRepository) UpdateStealCreditsForUser(guildID, userID string, amount int) error

UpdateStealCreditsForUser mocks base method.

type MockRepositoryMockRecorder

type MockRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) AdjustStealCreditsForUser

func (mr *MockRepositoryMockRecorder) AdjustStealCreditsForUser(guildID, userID, operation, amount interface{}) *gomock.Call

AdjustStealCreditsForUser indicates an expected call of AdjustStealCreditsForUser.

func (*MockRepositoryMockRecorder) CancelAutoSignup

func (mr *MockRepositoryMockRecorder) CancelAutoSignup(guildID, advertiserID interface{}) *gomock.Call

CancelAutoSignup indicates an expected call of CancelAutoSignup.

func (*MockRepositoryMockRecorder) DeleteAdvertiserPrivileges

func (mr *MockRepositoryMockRecorder) DeleteAdvertiserPrivileges(privileges interface{}) *gomock.Call

DeleteAdvertiserPrivileges indicates an expected call of DeleteAdvertiserPrivileges.

func (*MockRepositoryMockRecorder) DeleteBoostRequest

func (mr *MockRepositoryMockRecorder) DeleteBoostRequest(br interface{}) *gomock.Call

DeleteBoostRequest indicates an expected call of DeleteBoostRequest.

func (*MockRepositoryMockRecorder) DeleteBoostRequestChannel

func (mr *MockRepositoryMockRecorder) DeleteBoostRequestChannel(brc interface{}) *gomock.Call

DeleteBoostRequestChannel indicates an expected call of DeleteBoostRequestChannel.

func (*MockRepositoryMockRecorder) DeleteBoostRequestChannelsInGuild

func (mr *MockRepositoryMockRecorder) DeleteBoostRequestChannelsInGuild(guildID interface{}) *gomock.Call

DeleteBoostRequestChannelsInGuild indicates an expected call of DeleteBoostRequestChannelsInGuild.

func (*MockRepositoryMockRecorder) DeleteDelayedMessage

func (mr *MockRepositoryMockRecorder) DeleteDelayedMessage(id interface{}) *gomock.Call

DeleteDelayedMessage indicates an expected call of DeleteDelayedMessage.

func (*MockRepositoryMockRecorder) DeleteLogChannel

func (mr *MockRepositoryMockRecorder) DeleteLogChannel(guildID interface{}) *gomock.Call

DeleteLogChannel indicates an expected call of DeleteLogChannel.

func (*MockRepositoryMockRecorder) DeleteRollChannel

func (mr *MockRepositoryMockRecorder) DeleteRollChannel(guildID interface{}) *gomock.Call

DeleteRollChannel indicates an expected call of DeleteRollChannel.

func (*MockRepositoryMockRecorder) DeleteWebhook

func (mr *MockRepositoryMockRecorder) DeleteWebhook(Webhook interface{}) *gomock.Call

DeleteWebhook indicates an expected call of DeleteWebhook.

func (*MockRepositoryMockRecorder) EnableAutoSignup

func (mr *MockRepositoryMockRecorder) EnableAutoSignup(guildID, advertiserID, expiresAt interface{}) *gomock.Call

EnableAutoSignup indicates an expected call of EnableAutoSignup.

func (*MockRepositoryMockRecorder) FlagDelayedMessageAsSent

func (mr *MockRepositoryMockRecorder) FlagDelayedMessageAsSent(message interface{}) *gomock.Call

FlagDelayedMessageAsSent indicates an expected call of FlagDelayedMessageAsSent.

func (*MockRepositoryMockRecorder) GetAPIKey

func (mr *MockRepositoryMockRecorder) GetAPIKey(key interface{}) *gomock.Call

GetAPIKey indicates an expected call of GetAPIKey.

func (*MockRepositoryMockRecorder) GetAdvertiserPrivilegesForGuild

func (mr *MockRepositoryMockRecorder) GetAdvertiserPrivilegesForGuild(guildID interface{}) *gomock.Call

GetAdvertiserPrivilegesForGuild indicates an expected call of GetAdvertiserPrivilegesForGuild.

func (*MockRepositoryMockRecorder) GetAdvertiserPrivilegesForRole

func (mr *MockRepositoryMockRecorder) GetAdvertiserPrivilegesForRole(guildID, roleID interface{}) *gomock.Call

GetAdvertiserPrivilegesForRole indicates an expected call of GetAdvertiserPrivilegesForRole.

func (*MockRepositoryMockRecorder) GetAutoSignupDelayedMessageIDs

func (mr *MockRepositoryMockRecorder) GetAutoSignupDelayedMessageIDs(guildID, advertiserID interface{}) *gomock.Call

GetAutoSignupDelayedMessageIDs indicates an expected call of GetAutoSignupDelayedMessageIDs.

func (*MockRepositoryMockRecorder) GetBoostRequestByBackendMessageID

func (mr *MockRepositoryMockRecorder) GetBoostRequestByBackendMessageID(backendChannelID, backendMessageID interface{}) *gomock.Call

GetBoostRequestByBackendMessageID indicates an expected call of GetBoostRequestByBackendMessageID.

func (*MockRepositoryMockRecorder) GetBoostRequestById

func (mr *MockRepositoryMockRecorder) GetBoostRequestById(guildID, boostRequestID interface{}) *gomock.Call

GetBoostRequestById indicates an expected call of GetBoostRequestById.

func (*MockRepositoryMockRecorder) GetBoostRequestChannelByFrontendChannelID

func (mr *MockRepositoryMockRecorder) GetBoostRequestChannelByFrontendChannelID(guildID, frontendChannelID interface{}) *gomock.Call

GetBoostRequestChannelByFrontendChannelID indicates an expected call of GetBoostRequestChannelByFrontendChannelID.

func (*MockRepositoryMockRecorder) GetBoostRequestChannels

func (mr *MockRepositoryMockRecorder) GetBoostRequestChannels(guildID interface{}) *gomock.Call

GetBoostRequestChannels indicates an expected call of GetBoostRequestChannels.

func (*MockRepositoryMockRecorder) GetBoostRequestDelayedMessageIDs

func (mr *MockRepositoryMockRecorder) GetBoostRequestDelayedMessageIDs(br interface{}) *gomock.Call

GetBoostRequestDelayedMessageIDs indicates an expected call of GetBoostRequestDelayedMessageIDs.

func (*MockRepositoryMockRecorder) GetDelayedMessages

func (mr *MockRepositoryMockRecorder) GetDelayedMessages() *gomock.Call

GetDelayedMessages indicates an expected call of GetDelayedMessages.

func (*MockRepositoryMockRecorder) GetEnabledAutoSignups

func (mr *MockRepositoryMockRecorder) GetEnabledAutoSignups() *gomock.Call

GetEnabledAutoSignups indicates an expected call of GetEnabledAutoSignups.

func (*MockRepositoryMockRecorder) GetEnabledAutoSignupsInGuild

func (mr *MockRepositoryMockRecorder) GetEnabledAutoSignupsInGuild(guildID interface{}) *gomock.Call

GetEnabledAutoSignupsInGuild indicates an expected call of GetEnabledAutoSignupsInGuild.

func (*MockRepositoryMockRecorder) GetGlobalStealCreditsForUser

func (mr *MockRepositoryMockRecorder) GetGlobalStealCreditsForUser(userID interface{}) *gomock.Call

GetGlobalStealCreditsForUser indicates an expected call of GetGlobalStealCreditsForUser.

func (*MockRepositoryMockRecorder) GetLogChannel

func (mr *MockRepositoryMockRecorder) GetLogChannel(guildID interface{}) *gomock.Call

GetLogChannel indicates an expected call of GetLogChannel.

func (*MockRepositoryMockRecorder) GetQueuedWebhooks

func (mr *MockRepositoryMockRecorder) GetQueuedWebhooks() *gomock.Call

GetQueuedWebhooks indicates an expected call of GetQueuedWebhooks.

func (*MockRepositoryMockRecorder) GetRollChannel

func (mr *MockRepositoryMockRecorder) GetRollChannel(guildID interface{}) *gomock.Call

GetRollChannel indicates an expected call of GetRollChannel.

func (*MockRepositoryMockRecorder) GetStealCreditsForUser

func (mr *MockRepositoryMockRecorder) GetStealCreditsForUser(guildID, userID interface{}) *gomock.Call

GetStealCreditsForUser indicates an expected call of GetStealCreditsForUser.

func (*MockRepositoryMockRecorder) GetUnresolvedBoostRequests

func (mr *MockRepositoryMockRecorder) GetUnresolvedBoostRequests() *gomock.Call

GetUnresolvedBoostRequests indicates an expected call of GetUnresolvedBoostRequests.

func (*MockRepositoryMockRecorder) GetWebhook

func (mr *MockRepositoryMockRecorder) GetWebhook(guildId interface{}) *gomock.Call

GetWebhook indicates an expected call of GetWebhook.

func (*MockRepositoryMockRecorder) InsertAdvertiserPrivileges

func (mr *MockRepositoryMockRecorder) InsertAdvertiserPrivileges(privileges interface{}) *gomock.Call

InsertAdvertiserPrivileges indicates an expected call of InsertAdvertiserPrivileges.

func (*MockRepositoryMockRecorder) InsertAutoSignupDelayedMessages

func (mr *MockRepositoryMockRecorder) InsertAutoSignupDelayedMessages(autoSignup, delayedMessages interface{}) *gomock.Call

InsertAutoSignupDelayedMessages indicates an expected call of InsertAutoSignupDelayedMessages.

func (*MockRepositoryMockRecorder) InsertBoostRequest

func (mr *MockRepositoryMockRecorder) InsertBoostRequest(br interface{}) *gomock.Call

InsertBoostRequest indicates an expected call of InsertBoostRequest.

func (*MockRepositoryMockRecorder) InsertBoostRequestChannel

func (mr *MockRepositoryMockRecorder) InsertBoostRequestChannel(brc interface{}) *gomock.Call

InsertBoostRequestChannel indicates an expected call of InsertBoostRequestChannel.

func (*MockRepositoryMockRecorder) InsertBoostRequestDelayedMessage

func (mr *MockRepositoryMockRecorder) InsertBoostRequestDelayedMessage(br, delayedMessage interface{}) *gomock.Call

InsertBoostRequestDelayedMessage indicates an expected call of InsertBoostRequestDelayedMessage.

func (*MockRepositoryMockRecorder) InsertDelayedMessage

func (mr *MockRepositoryMockRecorder) InsertDelayedMessage(delayedMessage interface{}) *gomock.Call

InsertDelayedMessage indicates an expected call of InsertDelayedMessage.

func (*MockRepositoryMockRecorder) InsertLogChannel

func (mr *MockRepositoryMockRecorder) InsertLogChannel(guildID, channelID interface{}) *gomock.Call

InsertLogChannel indicates an expected call of InsertLogChannel.

func (*MockRepositoryMockRecorder) InsertQueuedWebhook

func (mr *MockRepositoryMockRecorder) InsertQueuedWebhook(webhook, body interface{}) *gomock.Call

InsertQueuedWebhook indicates an expected call of InsertQueuedWebhook.

func (*MockRepositoryMockRecorder) InsertRollChannel

func (mr *MockRepositoryMockRecorder) InsertRollChannel(guildID, channelID interface{}) *gomock.Call

InsertRollChannel indicates an expected call of InsertRollChannel.

func (*MockRepositoryMockRecorder) InsertWebhook

func (mr *MockRepositoryMockRecorder) InsertWebhook(webhook interface{}) *gomock.Call

InsertWebhook indicates an expected call of InsertWebhook.

func (*MockRepositoryMockRecorder) InsertWebhookAttempt

func (mr *MockRepositoryMockRecorder) InsertWebhookAttempt(attempt interface{}) *gomock.Call

InsertWebhookAttempt indicates an expected call of InsertWebhookAttempt.

func (*MockRepositoryMockRecorder) IsAutoSignupEnabled

func (mr *MockRepositoryMockRecorder) IsAutoSignupEnabled(guildID, advertiserID interface{}) *gomock.Call

IsAutoSignupEnabled indicates an expected call of IsAutoSignupEnabled.

func (*MockRepositoryMockRecorder) NewAPIKey

func (mr *MockRepositoryMockRecorder) NewAPIKey(guildID interface{}) *gomock.Call

NewAPIKey indicates an expected call of NewAPIKey.

func (*MockRepositoryMockRecorder) ResolveBoostRequest

func (mr *MockRepositoryMockRecorder) ResolveBoostRequest(br interface{}) *gomock.Call

ResolveBoostRequest indicates an expected call of ResolveBoostRequest.

func (*MockRepositoryMockRecorder) UpdateStealCreditsForUser

func (mr *MockRepositoryMockRecorder) UpdateStealCreditsForUser(guildID, userID, amount interface{}) *gomock.Call

UpdateStealCreditsForUser indicates an expected call of UpdateStealCreditsForUser.

type MockRollChannelRepository

type MockRollChannelRepository struct {
	// contains filtered or unexported fields
}

MockRollChannelRepository is a mock of RollChannelRepository interface.

func NewMockRollChannelRepository

func NewMockRollChannelRepository(ctrl *gomock.Controller) *MockRollChannelRepository

NewMockRollChannelRepository creates a new mock instance.

func (*MockRollChannelRepository) DeleteRollChannel

func (m *MockRollChannelRepository) DeleteRollChannel(guildID string) error

DeleteRollChannel mocks base method.

func (*MockRollChannelRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRollChannelRepository) GetRollChannel

func (m *MockRollChannelRepository) GetRollChannel(guildID string) (string, error)

GetRollChannel mocks base method.

func (*MockRollChannelRepository) InsertRollChannel

func (m *MockRollChannelRepository) InsertRollChannel(guildID, channelID string) error

InsertRollChannel mocks base method.

type MockRollChannelRepositoryMockRecorder

type MockRollChannelRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockRollChannelRepositoryMockRecorder is the mock recorder for MockRollChannelRepository.

func (*MockRollChannelRepositoryMockRecorder) DeleteRollChannel

func (mr *MockRollChannelRepositoryMockRecorder) DeleteRollChannel(guildID interface{}) *gomock.Call

DeleteRollChannel indicates an expected call of DeleteRollChannel.

func (*MockRollChannelRepositoryMockRecorder) GetRollChannel

func (mr *MockRollChannelRepositoryMockRecorder) GetRollChannel(guildID interface{}) *gomock.Call

GetRollChannel indicates an expected call of GetRollChannel.

func (*MockRollChannelRepositoryMockRecorder) InsertRollChannel

func (mr *MockRollChannelRepositoryMockRecorder) InsertRollChannel(guildID, channelID interface{}) *gomock.Call

InsertRollChannel indicates an expected call of InsertRollChannel.

type MockStealCreditRepository

type MockStealCreditRepository struct {
	// contains filtered or unexported fields
}

MockStealCreditRepository is a mock of StealCreditRepository interface.

func NewMockStealCreditRepository

func NewMockStealCreditRepository(ctrl *gomock.Controller) *MockStealCreditRepository

NewMockStealCreditRepository creates a new mock instance.

func (*MockStealCreditRepository) AdjustStealCreditsForUser

func (m *MockStealCreditRepository) AdjustStealCreditsForUser(guildID, userID string, operation repository.Operation, amount int) error

AdjustStealCreditsForUser mocks base method.

func (*MockStealCreditRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStealCreditRepository) GetGlobalStealCreditsForUser

func (m *MockStealCreditRepository) GetGlobalStealCreditsForUser(userID string) (map[string]int, error)

GetGlobalStealCreditsForUser mocks base method.

func (*MockStealCreditRepository) GetStealCreditsForUser

func (m *MockStealCreditRepository) GetStealCreditsForUser(guildID, userID string) (int, error)

GetStealCreditsForUser mocks base method.

func (*MockStealCreditRepository) UpdateStealCreditsForUser

func (m *MockStealCreditRepository) UpdateStealCreditsForUser(guildID, userID string, amount int) error

UpdateStealCreditsForUser mocks base method.

type MockStealCreditRepositoryMockRecorder

type MockStealCreditRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockStealCreditRepositoryMockRecorder is the mock recorder for MockStealCreditRepository.

func (*MockStealCreditRepositoryMockRecorder) AdjustStealCreditsForUser

func (mr *MockStealCreditRepositoryMockRecorder) AdjustStealCreditsForUser(guildID, userID, operation, amount interface{}) *gomock.Call

AdjustStealCreditsForUser indicates an expected call of AdjustStealCreditsForUser.

func (*MockStealCreditRepositoryMockRecorder) GetGlobalStealCreditsForUser

func (mr *MockStealCreditRepositoryMockRecorder) GetGlobalStealCreditsForUser(userID interface{}) *gomock.Call

GetGlobalStealCreditsForUser indicates an expected call of GetGlobalStealCreditsForUser.

func (*MockStealCreditRepositoryMockRecorder) GetStealCreditsForUser

func (mr *MockStealCreditRepositoryMockRecorder) GetStealCreditsForUser(guildID, userID interface{}) *gomock.Call

GetStealCreditsForUser indicates an expected call of GetStealCreditsForUser.

func (*MockStealCreditRepositoryMockRecorder) UpdateStealCreditsForUser

func (mr *MockStealCreditRepositoryMockRecorder) UpdateStealCreditsForUser(guildID, userID, amount interface{}) *gomock.Call

UpdateStealCreditsForUser indicates an expected call of UpdateStealCreditsForUser.

type MockWebhookRepository

type MockWebhookRepository struct {
	// contains filtered or unexported fields
}

MockWebhookRepository is a mock of WebhookRepository interface.

func NewMockWebhookRepository

func NewMockWebhookRepository(ctrl *gomock.Controller) *MockWebhookRepository

NewMockWebhookRepository creates a new mock instance.

func (*MockWebhookRepository) DeleteWebhook

func (m *MockWebhookRepository) DeleteWebhook(Webhook repository.Webhook) error

DeleteWebhook mocks base method.

func (*MockWebhookRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockWebhookRepository) GetQueuedWebhooks

func (m *MockWebhookRepository) GetQueuedWebhooks() ([]*repository.QueuedWebhookRequest, error)

GetQueuedWebhooks mocks base method.

func (*MockWebhookRepository) GetWebhook

func (m *MockWebhookRepository) GetWebhook(guildId string) (repository.Webhook, error)

GetWebhook mocks base method.

func (*MockWebhookRepository) InsertQueuedWebhook

func (m *MockWebhookRepository) InsertQueuedWebhook(webhook repository.Webhook, body string) error

InsertQueuedWebhook mocks base method.

func (*MockWebhookRepository) InsertWebhook

func (m *MockWebhookRepository) InsertWebhook(webhook repository.Webhook) error

InsertWebhook mocks base method.

func (*MockWebhookRepository) InsertWebhookAttempt

func (m *MockWebhookRepository) InsertWebhookAttempt(attempt repository.WebhookAttempt) error

InsertWebhookAttempt mocks base method.

type MockWebhookRepositoryMockRecorder

type MockWebhookRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockWebhookRepositoryMockRecorder is the mock recorder for MockWebhookRepository.

func (*MockWebhookRepositoryMockRecorder) DeleteWebhook

func (mr *MockWebhookRepositoryMockRecorder) DeleteWebhook(Webhook interface{}) *gomock.Call

DeleteWebhook indicates an expected call of DeleteWebhook.

func (*MockWebhookRepositoryMockRecorder) GetQueuedWebhooks

func (mr *MockWebhookRepositoryMockRecorder) GetQueuedWebhooks() *gomock.Call

GetQueuedWebhooks indicates an expected call of GetQueuedWebhooks.

func (*MockWebhookRepositoryMockRecorder) GetWebhook

func (mr *MockWebhookRepositoryMockRecorder) GetWebhook(guildId interface{}) *gomock.Call

GetWebhook indicates an expected call of GetWebhook.

func (*MockWebhookRepositoryMockRecorder) InsertQueuedWebhook

func (mr *MockWebhookRepositoryMockRecorder) InsertQueuedWebhook(webhook, body interface{}) *gomock.Call

InsertQueuedWebhook indicates an expected call of InsertQueuedWebhook.

func (*MockWebhookRepositoryMockRecorder) InsertWebhook

func (mr *MockWebhookRepositoryMockRecorder) InsertWebhook(webhook interface{}) *gomock.Call

InsertWebhook indicates an expected call of InsertWebhook.

func (*MockWebhookRepositoryMockRecorder) InsertWebhookAttempt

func (mr *MockWebhookRepositoryMockRecorder) InsertWebhookAttempt(attempt interface{}) *gomock.Call

InsertWebhookAttempt indicates an expected call of InsertWebhookAttempt.

Jump to

Keyboard shortcuts

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