Documentation
¶
Index ¶
- type APIClient
- func (_m *APIClient) EXPECT() *APIClient_Expecter
- func (_m *APIClient) GetChatSettings(ctx context.Context, broadcasterID string, moderatorID string) (twitch.GetChatSettingsResponse, error)
- func (_m *APIClient) GetStreamInfo(ctx context.Context, broadcastID []string) (twitch.GetStreamsResponse, error)
- func (_m *APIClient) GetUsers(ctx context.Context, logins []string, ids []string) (twitch.UserResponse, error)
- type APIClientWithRefresh
- func (_m *APIClientWithRefresh) EXPECT() *APIClientWithRefresh_Expecter
- func (_m *APIClientWithRefresh) GetChatSettings(ctx context.Context, broadcasterID string, moderatorID string) (twitch.GetChatSettingsResponse, error)
- func (_m *APIClientWithRefresh) GetStreamInfo(ctx context.Context, broadcastID []string) (twitch.GetStreamsResponse, error)
- func (_m *APIClientWithRefresh) GetUsers(ctx context.Context, logins []string, ids []string) (twitch.UserResponse, error)
- func (_m *APIClientWithRefresh) RefreshToken(ctx context.Context, refreshToken string) (string, string, error)
- type APIClientWithRefresh_Expecter
- func (_e *APIClientWithRefresh_Expecter) GetChatSettings(ctx interface{}, broadcasterID interface{}, moderatorID interface{}) *APIClientWithRefresh_GetChatSettings_Call
- func (_e *APIClientWithRefresh_Expecter) GetStreamInfo(ctx interface{}, broadcastID interface{}) *APIClientWithRefresh_GetStreamInfo_Call
- func (_e *APIClientWithRefresh_Expecter) GetUsers(ctx interface{}, logins interface{}, ids interface{}) *APIClientWithRefresh_GetUsers_Call
- func (_e *APIClientWithRefresh_Expecter) RefreshToken(ctx interface{}, refreshToken interface{}) *APIClientWithRefresh_RefreshToken_Call
- type APIClientWithRefresh_GetChatSettings_Call
- func (_c *APIClientWithRefresh_GetChatSettings_Call) Return(_a0 twitch.GetChatSettingsResponse, _a1 error) *APIClientWithRefresh_GetChatSettings_Call
- func (_c *APIClientWithRefresh_GetChatSettings_Call) Run(run func(ctx context.Context, broadcasterID string, moderatorID string)) *APIClientWithRefresh_GetChatSettings_Call
- func (_c *APIClientWithRefresh_GetChatSettings_Call) RunAndReturn(...) *APIClientWithRefresh_GetChatSettings_Call
- type APIClientWithRefresh_GetStreamInfo_Call
- func (_c *APIClientWithRefresh_GetStreamInfo_Call) Return(_a0 twitch.GetStreamsResponse, _a1 error) *APIClientWithRefresh_GetStreamInfo_Call
- func (_c *APIClientWithRefresh_GetStreamInfo_Call) Run(run func(ctx context.Context, broadcastID []string)) *APIClientWithRefresh_GetStreamInfo_Call
- func (_c *APIClientWithRefresh_GetStreamInfo_Call) RunAndReturn(run func(context.Context, []string) (twitch.GetStreamsResponse, error)) *APIClientWithRefresh_GetStreamInfo_Call
- type APIClientWithRefresh_GetUsers_Call
- func (_c *APIClientWithRefresh_GetUsers_Call) Return(_a0 twitch.UserResponse, _a1 error) *APIClientWithRefresh_GetUsers_Call
- func (_c *APIClientWithRefresh_GetUsers_Call) Run(run func(ctx context.Context, logins []string, ids []string)) *APIClientWithRefresh_GetUsers_Call
- func (_c *APIClientWithRefresh_GetUsers_Call) RunAndReturn(run func(context.Context, []string, []string) (twitch.UserResponse, error)) *APIClientWithRefresh_GetUsers_Call
- type APIClientWithRefresh_RefreshToken_Call
- func (_c *APIClientWithRefresh_RefreshToken_Call) Return(_a0 string, _a1 string, _a2 error) *APIClientWithRefresh_RefreshToken_Call
- func (_c *APIClientWithRefresh_RefreshToken_Call) Run(run func(ctx context.Context, refreshToken string)) *APIClientWithRefresh_RefreshToken_Call
- func (_c *APIClientWithRefresh_RefreshToken_Call) RunAndReturn(run func(context.Context, string) (string, string, error)) *APIClientWithRefresh_RefreshToken_Call
- type APIClient_Expecter
- func (_e *APIClient_Expecter) GetChatSettings(ctx interface{}, broadcasterID interface{}, moderatorID interface{}) *APIClient_GetChatSettings_Call
- func (_e *APIClient_Expecter) GetStreamInfo(ctx interface{}, broadcastID interface{}) *APIClient_GetStreamInfo_Call
- func (_e *APIClient_Expecter) GetUsers(ctx interface{}, logins interface{}, ids interface{}) *APIClient_GetUsers_Call
- type APIClient_GetChatSettings_Call
- func (_c *APIClient_GetChatSettings_Call) Return(_a0 twitch.GetChatSettingsResponse, _a1 error) *APIClient_GetChatSettings_Call
- func (_c *APIClient_GetChatSettings_Call) Run(run func(ctx context.Context, broadcasterID string, moderatorID string)) *APIClient_GetChatSettings_Call
- func (_c *APIClient_GetChatSettings_Call) RunAndReturn(...) *APIClient_GetChatSettings_Call
- type APIClient_GetStreamInfo_Call
- func (_c *APIClient_GetStreamInfo_Call) Return(_a0 twitch.GetStreamsResponse, _a1 error) *APIClient_GetStreamInfo_Call
- func (_c *APIClient_GetStreamInfo_Call) Run(run func(ctx context.Context, broadcastID []string)) *APIClient_GetStreamInfo_Call
- func (_c *APIClient_GetStreamInfo_Call) RunAndReturn(run func(context.Context, []string) (twitch.GetStreamsResponse, error)) *APIClient_GetStreamInfo_Call
- type APIClient_GetUsers_Call
- func (_c *APIClient_GetUsers_Call) Return(_a0 twitch.UserResponse, _a1 error) *APIClient_GetUsers_Call
- func (_c *APIClient_GetUsers_Call) Run(run func(ctx context.Context, logins []string, ids []string)) *APIClient_GetUsers_Call
- func (_c *APIClient_GetUsers_Call) RunAndReturn(run func(context.Context, []string, []string) (twitch.UserResponse, error)) *APIClient_GetUsers_Call
- type AccountProvider
- func (_m *AccountProvider) EXPECT() *AccountProvider_Expecter
- func (_m *AccountProvider) GetAccountBy(id string) (save.Account, error)
- func (_m *AccountProvider) GetAllAccounts() ([]save.Account, error)
- func (_m *AccountProvider) UpdateTokensFor(id string, accessToken string, refreshToken string) error
- type AccountProvider_Expecter
- func (_e *AccountProvider_Expecter) GetAccountBy(id interface{}) *AccountProvider_GetAccountBy_Call
- func (_e *AccountProvider_Expecter) GetAllAccounts() *AccountProvider_GetAllAccounts_Call
- func (_e *AccountProvider_Expecter) UpdateTokensFor(id interface{}, accessToken interface{}, refreshToken interface{}) *AccountProvider_UpdateTokensFor_Call
- type AccountProvider_GetAccountBy_Call
- func (_c *AccountProvider_GetAccountBy_Call) Return(_a0 save.Account, _a1 error) *AccountProvider_GetAccountBy_Call
- func (_c *AccountProvider_GetAccountBy_Call) Run(run func(id string)) *AccountProvider_GetAccountBy_Call
- func (_c *AccountProvider_GetAccountBy_Call) RunAndReturn(run func(string) (save.Account, error)) *AccountProvider_GetAccountBy_Call
- type AccountProvider_GetAllAccounts_Call
- func (_c *AccountProvider_GetAllAccounts_Call) Return(_a0 []save.Account, _a1 error) *AccountProvider_GetAllAccounts_Call
- func (_c *AccountProvider_GetAllAccounts_Call) Run(run func()) *AccountProvider_GetAllAccounts_Call
- func (_c *AccountProvider_GetAllAccounts_Call) RunAndReturn(run func() ([]save.Account, error)) *AccountProvider_GetAllAccounts_Call
- type AccountProvider_UpdateTokensFor_Call
- func (_c *AccountProvider_UpdateTokensFor_Call) Return(_a0 error) *AccountProvider_UpdateTokensFor_Call
- func (_c *AccountProvider_UpdateTokensFor_Call) Run(run func(id string, accessToken string, refreshToken string)) *AccountProvider_UpdateTokensFor_Call
- func (_c *AccountProvider_UpdateTokensFor_Call) RunAndReturn(run func(string, string, string) error) *AccountProvider_UpdateTokensFor_Call
- type BTTVEmoteFetcher
- type BTTVEmoteFetcher_Expecter
- type BTTVEmoteFetcher_GetChannelEmotes_Call
- func (_c *BTTVEmoteFetcher_GetChannelEmotes_Call) Return(_a0 bttv.UserResponse, _a1 error) *BTTVEmoteFetcher_GetChannelEmotes_Call
- func (_c *BTTVEmoteFetcher_GetChannelEmotes_Call) Run(run func(ctx context.Context, broadcaster string)) *BTTVEmoteFetcher_GetChannelEmotes_Call
- func (_c *BTTVEmoteFetcher_GetChannelEmotes_Call) RunAndReturn(run func(context.Context, string) (bttv.UserResponse, error)) *BTTVEmoteFetcher_GetChannelEmotes_Call
- type BTTVEmoteFetcher_GetGlobalEmotes_Call
- func (_c *BTTVEmoteFetcher_GetGlobalEmotes_Call) Return(_a0 bttv.GlobalEmoteResponse, _a1 error) *BTTVEmoteFetcher_GetGlobalEmotes_Call
- func (_c *BTTVEmoteFetcher_GetGlobalEmotes_Call) Run(run func(_a0 context.Context)) *BTTVEmoteFetcher_GetGlobalEmotes_Call
- func (_c *BTTVEmoteFetcher_GetGlobalEmotes_Call) RunAndReturn(run func(context.Context) (bttv.GlobalEmoteResponse, error)) *BTTVEmoteFetcher_GetGlobalEmotes_Call
- type ChatPool
- type ChatPool_Expecter
- type ChatPool_ListenAndServe_Call
- func (_c *ChatPool_ListenAndServe_Call) Return(_a0 <-chan multiplex.OutboundMessage) *ChatPool_ListenAndServe_Call
- func (_c *ChatPool_ListenAndServe_Call) Run(run func(inbound <-chan multiplex.InboundMessage)) *ChatPool_ListenAndServe_Call
- func (_c *ChatPool_ListenAndServe_Call) RunAndReturn(run func(<-chan multiplex.InboundMessage) <-chan multiplex.OutboundMessage) *ChatPool_ListenAndServe_Call
- type DB
- type DB_Exec_Call
- type DB_Expecter
- type DB_Query_Call
- type EmoteStore
- func (_m *EmoteStore) EXPECT() *EmoteStore_Expecter
- func (_m *EmoteStore) GetAllForUser(id string) emote.EmoteSet
- func (_m *EmoteStore) GetByText(channel string, text string) (emote.Emote, bool)
- func (_m *EmoteStore) RefreshGlobal(ctx context.Context) error
- func (_m *EmoteStore) RefreshLocal(ctx context.Context, channelID string) error
- type EmoteStore_Expecter
- func (_e *EmoteStore_Expecter) GetAllForUser(id interface{}) *EmoteStore_GetAllForUser_Call
- func (_e *EmoteStore_Expecter) GetByText(channel interface{}, text interface{}) *EmoteStore_GetByText_Call
- func (_e *EmoteStore_Expecter) RefreshGlobal(ctx interface{}) *EmoteStore_RefreshGlobal_Call
- func (_e *EmoteStore_Expecter) RefreshLocal(ctx interface{}, channelID interface{}) *EmoteStore_RefreshLocal_Call
- type EmoteStore_GetAllForUser_Call
- func (_c *EmoteStore_GetAllForUser_Call) Return(_a0 emote.EmoteSet) *EmoteStore_GetAllForUser_Call
- func (_c *EmoteStore_GetAllForUser_Call) Run(run func(id string)) *EmoteStore_GetAllForUser_Call
- func (_c *EmoteStore_GetAllForUser_Call) RunAndReturn(run func(string) emote.EmoteSet) *EmoteStore_GetAllForUser_Call
- type EmoteStore_GetByText_Call
- func (_c *EmoteStore_GetByText_Call) Return(_a0 emote.Emote, _a1 bool) *EmoteStore_GetByText_Call
- func (_c *EmoteStore_GetByText_Call) Run(run func(channel string, text string)) *EmoteStore_GetByText_Call
- func (_c *EmoteStore_GetByText_Call) RunAndReturn(run func(string, string) (emote.Emote, bool)) *EmoteStore_GetByText_Call
- type EmoteStore_RefreshGlobal_Call
- func (_c *EmoteStore_RefreshGlobal_Call) Return(_a0 error) *EmoteStore_RefreshGlobal_Call
- func (_c *EmoteStore_RefreshGlobal_Call) Run(run func(ctx context.Context)) *EmoteStore_RefreshGlobal_Call
- func (_c *EmoteStore_RefreshGlobal_Call) RunAndReturn(run func(context.Context) error) *EmoteStore_RefreshGlobal_Call
- type EmoteStore_RefreshLocal_Call
- func (_c *EmoteStore_RefreshLocal_Call) Return(_a0 error) *EmoteStore_RefreshLocal_Call
- func (_c *EmoteStore_RefreshLocal_Call) Run(run func(ctx context.Context, channelID string)) *EmoteStore_RefreshLocal_Call
- func (_c *EmoteStore_RefreshLocal_Call) RunAndReturn(run func(context.Context, string) error) *EmoteStore_RefreshLocal_Call
- type EventSubPool
- type EventSubPool_Expecter
- type EventSubPool_ListenAndServe_Call
- func (_c *EventSubPool_ListenAndServe_Call) Return(_a0 error) *EventSubPool_ListenAndServe_Call
- func (_c *EventSubPool_ListenAndServe_Call) Run(run func(inbound <-chan multiplex.EventSubInboundMessage)) *EventSubPool_ListenAndServe_Call
- func (_c *EventSubPool_ListenAndServe_Call) RunAndReturn(run func(<-chan multiplex.EventSubInboundMessage) error) *EventSubPool_ListenAndServe_Call
- type RecentMessageService
- type RecentMessageService_Expecter
- type RecentMessageService_GetRecentMessagesFor_Call
- func (_c *RecentMessageService_GetRecentMessagesFor_Call) Return(_a0 []twitch.IRCer, _a1 error) *RecentMessageService_GetRecentMessagesFor_Call
- func (_c *RecentMessageService_GetRecentMessagesFor_Call) Run(run func(ctx context.Context, channelLogin string)) *RecentMessageService_GetRecentMessagesFor_Call
- func (_c *RecentMessageService_GetRecentMessagesFor_Call) RunAndReturn(run func(context.Context, string) ([]twitch.IRCer, error)) *RecentMessageService_GetRecentMessagesFor_Call
- type SevenTVEmoteFetcher
- type SevenTVEmoteFetcher_Expecter
- type SevenTVEmoteFetcher_GetChannelEmotes_Call
- func (_c *SevenTVEmoteFetcher_GetChannelEmotes_Call) Return(_a0 seventv.ChannelEmoteResponse, _a1 error) *SevenTVEmoteFetcher_GetChannelEmotes_Call
- func (_c *SevenTVEmoteFetcher_GetChannelEmotes_Call) Run(run func(ctx context.Context, broadcaster string)) *SevenTVEmoteFetcher_GetChannelEmotes_Call
- func (_c *SevenTVEmoteFetcher_GetChannelEmotes_Call) RunAndReturn(run func(context.Context, string) (seventv.ChannelEmoteResponse, error)) *SevenTVEmoteFetcher_GetChannelEmotes_Call
- type SevenTVEmoteFetcher_GetGlobalEmotes_Call
- func (_c *SevenTVEmoteFetcher_GetGlobalEmotes_Call) Return(_a0 seventv.EmoteResponse, _a1 error) *SevenTVEmoteFetcher_GetGlobalEmotes_Call
- func (_c *SevenTVEmoteFetcher_GetGlobalEmotes_Call) Run(run func(_a0 context.Context)) *SevenTVEmoteFetcher_GetGlobalEmotes_Call
- func (_c *SevenTVEmoteFetcher_GetGlobalEmotes_Call) RunAndReturn(run func(context.Context) (seventv.EmoteResponse, error)) *SevenTVEmoteFetcher_GetGlobalEmotes_Call
- type TwitchEmoteFetcher
- type TwitchEmoteFetcher_Expecter
- type TwitchEmoteFetcher_GetChannelEmotes_Call
- func (_c *TwitchEmoteFetcher_GetChannelEmotes_Call) Return(_a0 twitch.EmoteResponse, _a1 error) *TwitchEmoteFetcher_GetChannelEmotes_Call
- func (_c *TwitchEmoteFetcher_GetChannelEmotes_Call) Run(run func(ctx context.Context, broadcaster string)) *TwitchEmoteFetcher_GetChannelEmotes_Call
- func (_c *TwitchEmoteFetcher_GetChannelEmotes_Call) RunAndReturn(run func(context.Context, string) (twitch.EmoteResponse, error)) *TwitchEmoteFetcher_GetChannelEmotes_Call
- type TwitchEmoteFetcher_GetGlobalEmotes_Call
- func (_c *TwitchEmoteFetcher_GetGlobalEmotes_Call) Return(_a0 twitch.EmoteResponse, _a1 error) *TwitchEmoteFetcher_GetGlobalEmotes_Call
- func (_c *TwitchEmoteFetcher_GetGlobalEmotes_Call) Run(run func(_a0 context.Context)) *TwitchEmoteFetcher_GetGlobalEmotes_Call
- func (_c *TwitchEmoteFetcher_GetGlobalEmotes_Call) RunAndReturn(run func(context.Context) (twitch.EmoteResponse, error)) *TwitchEmoteFetcher_GetGlobalEmotes_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
APIClient is an autogenerated mock type for the APIClient type
func NewAPIClient ¶
NewAPIClient creates a new instance of APIClient. 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 (*APIClient) EXPECT ¶
func (_m *APIClient) EXPECT() *APIClient_Expecter
func (*APIClient) GetChatSettings ¶
func (_m *APIClient) GetChatSettings(ctx context.Context, broadcasterID string, moderatorID string) (twitch.GetChatSettingsResponse, error)
GetChatSettings provides a mock function with given fields: ctx, broadcasterID, moderatorID
func (*APIClient) GetStreamInfo ¶
func (_m *APIClient) GetStreamInfo(ctx context.Context, broadcastID []string) (twitch.GetStreamsResponse, error)
GetStreamInfo provides a mock function with given fields: ctx, broadcastID
type APIClientWithRefresh ¶
APIClientWithRefresh is an autogenerated mock type for the APIClientWithRefresh type
func NewAPIClientWithRefresh ¶
func NewAPIClientWithRefresh(t interface { mock.TestingT Cleanup(func()) }) *APIClientWithRefresh
NewAPIClientWithRefresh creates a new instance of APIClientWithRefresh. 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 (*APIClientWithRefresh) EXPECT ¶
func (_m *APIClientWithRefresh) EXPECT() *APIClientWithRefresh_Expecter
func (*APIClientWithRefresh) GetChatSettings ¶
func (_m *APIClientWithRefresh) GetChatSettings(ctx context.Context, broadcasterID string, moderatorID string) (twitch.GetChatSettingsResponse, error)
GetChatSettings provides a mock function with given fields: ctx, broadcasterID, moderatorID
func (*APIClientWithRefresh) GetStreamInfo ¶
func (_m *APIClientWithRefresh) GetStreamInfo(ctx context.Context, broadcastID []string) (twitch.GetStreamsResponse, error)
GetStreamInfo provides a mock function with given fields: ctx, broadcastID
func (*APIClientWithRefresh) GetUsers ¶
func (_m *APIClientWithRefresh) GetUsers(ctx context.Context, logins []string, ids []string) (twitch.UserResponse, error)
GetUsers provides a mock function with given fields: ctx, logins, ids
func (*APIClientWithRefresh) RefreshToken ¶
func (_m *APIClientWithRefresh) RefreshToken(ctx context.Context, refreshToken string) (string, string, error)
RefreshToken provides a mock function with given fields: ctx, refreshToken
type APIClientWithRefresh_Expecter ¶
type APIClientWithRefresh_Expecter struct {
// contains filtered or unexported fields
}
func (*APIClientWithRefresh_Expecter) GetChatSettings ¶
func (_e *APIClientWithRefresh_Expecter) GetChatSettings(ctx interface{}, broadcasterID interface{}, moderatorID interface{}) *APIClientWithRefresh_GetChatSettings_Call
GetChatSettings is a helper method to define mock.On call
- ctx context.Context
- broadcasterID string
- moderatorID string
func (*APIClientWithRefresh_Expecter) GetStreamInfo ¶
func (_e *APIClientWithRefresh_Expecter) GetStreamInfo(ctx interface{}, broadcastID interface{}) *APIClientWithRefresh_GetStreamInfo_Call
GetStreamInfo is a helper method to define mock.On call
- ctx context.Context
- broadcastID []string
func (*APIClientWithRefresh_Expecter) GetUsers ¶
func (_e *APIClientWithRefresh_Expecter) GetUsers(ctx interface{}, logins interface{}, ids interface{}) *APIClientWithRefresh_GetUsers_Call
GetUsers is a helper method to define mock.On call
- ctx context.Context
- logins []string
- ids []string
func (*APIClientWithRefresh_Expecter) RefreshToken ¶
func (_e *APIClientWithRefresh_Expecter) RefreshToken(ctx interface{}, refreshToken interface{}) *APIClientWithRefresh_RefreshToken_Call
RefreshToken is a helper method to define mock.On call
- ctx context.Context
- refreshToken string
type APIClientWithRefresh_GetChatSettings_Call ¶
APIClientWithRefresh_GetChatSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChatSettings'
func (*APIClientWithRefresh_GetChatSettings_Call) Return ¶
func (_c *APIClientWithRefresh_GetChatSettings_Call) Return(_a0 twitch.GetChatSettingsResponse, _a1 error) *APIClientWithRefresh_GetChatSettings_Call
func (*APIClientWithRefresh_GetChatSettings_Call) Run ¶
func (_c *APIClientWithRefresh_GetChatSettings_Call) Run(run func(ctx context.Context, broadcasterID string, moderatorID string)) *APIClientWithRefresh_GetChatSettings_Call
func (*APIClientWithRefresh_GetChatSettings_Call) RunAndReturn ¶
func (_c *APIClientWithRefresh_GetChatSettings_Call) RunAndReturn(run func(context.Context, string, string) (twitch.GetChatSettingsResponse, error)) *APIClientWithRefresh_GetChatSettings_Call
type APIClientWithRefresh_GetStreamInfo_Call ¶
APIClientWithRefresh_GetStreamInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStreamInfo'
func (*APIClientWithRefresh_GetStreamInfo_Call) Return ¶
func (_c *APIClientWithRefresh_GetStreamInfo_Call) Return(_a0 twitch.GetStreamsResponse, _a1 error) *APIClientWithRefresh_GetStreamInfo_Call
func (*APIClientWithRefresh_GetStreamInfo_Call) Run ¶
func (_c *APIClientWithRefresh_GetStreamInfo_Call) Run(run func(ctx context.Context, broadcastID []string)) *APIClientWithRefresh_GetStreamInfo_Call
func (*APIClientWithRefresh_GetStreamInfo_Call) RunAndReturn ¶
func (_c *APIClientWithRefresh_GetStreamInfo_Call) RunAndReturn(run func(context.Context, []string) (twitch.GetStreamsResponse, error)) *APIClientWithRefresh_GetStreamInfo_Call
type APIClientWithRefresh_GetUsers_Call ¶
APIClientWithRefresh_GetUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUsers'
func (*APIClientWithRefresh_GetUsers_Call) Return ¶
func (_c *APIClientWithRefresh_GetUsers_Call) Return(_a0 twitch.UserResponse, _a1 error) *APIClientWithRefresh_GetUsers_Call
func (*APIClientWithRefresh_GetUsers_Call) Run ¶
func (_c *APIClientWithRefresh_GetUsers_Call) Run(run func(ctx context.Context, logins []string, ids []string)) *APIClientWithRefresh_GetUsers_Call
func (*APIClientWithRefresh_GetUsers_Call) RunAndReturn ¶
func (_c *APIClientWithRefresh_GetUsers_Call) RunAndReturn(run func(context.Context, []string, []string) (twitch.UserResponse, error)) *APIClientWithRefresh_GetUsers_Call
type APIClientWithRefresh_RefreshToken_Call ¶
APIClientWithRefresh_RefreshToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefreshToken'
func (*APIClientWithRefresh_RefreshToken_Call) Return ¶
func (_c *APIClientWithRefresh_RefreshToken_Call) Return(_a0 string, _a1 string, _a2 error) *APIClientWithRefresh_RefreshToken_Call
func (*APIClientWithRefresh_RefreshToken_Call) Run ¶
func (_c *APIClientWithRefresh_RefreshToken_Call) Run(run func(ctx context.Context, refreshToken string)) *APIClientWithRefresh_RefreshToken_Call
func (*APIClientWithRefresh_RefreshToken_Call) RunAndReturn ¶
func (_c *APIClientWithRefresh_RefreshToken_Call) RunAndReturn(run func(context.Context, string) (string, string, error)) *APIClientWithRefresh_RefreshToken_Call
type APIClient_Expecter ¶
type APIClient_Expecter struct {
// contains filtered or unexported fields
}
func (*APIClient_Expecter) GetChatSettings ¶
func (_e *APIClient_Expecter) GetChatSettings(ctx interface{}, broadcasterID interface{}, moderatorID interface{}) *APIClient_GetChatSettings_Call
GetChatSettings is a helper method to define mock.On call
- ctx context.Context
- broadcasterID string
- moderatorID string
func (*APIClient_Expecter) GetStreamInfo ¶
func (_e *APIClient_Expecter) GetStreamInfo(ctx interface{}, broadcastID interface{}) *APIClient_GetStreamInfo_Call
GetStreamInfo is a helper method to define mock.On call
- ctx context.Context
- broadcastID []string
func (*APIClient_Expecter) GetUsers ¶
func (_e *APIClient_Expecter) GetUsers(ctx interface{}, logins interface{}, ids interface{}) *APIClient_GetUsers_Call
GetUsers is a helper method to define mock.On call
- ctx context.Context
- logins []string
- ids []string
type APIClient_GetChatSettings_Call ¶
APIClient_GetChatSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChatSettings'
func (*APIClient_GetChatSettings_Call) Return ¶
func (_c *APIClient_GetChatSettings_Call) Return(_a0 twitch.GetChatSettingsResponse, _a1 error) *APIClient_GetChatSettings_Call
func (*APIClient_GetChatSettings_Call) Run ¶
func (_c *APIClient_GetChatSettings_Call) Run(run func(ctx context.Context, broadcasterID string, moderatorID string)) *APIClient_GetChatSettings_Call
func (*APIClient_GetChatSettings_Call) RunAndReturn ¶
func (_c *APIClient_GetChatSettings_Call) RunAndReturn(run func(context.Context, string, string) (twitch.GetChatSettingsResponse, error)) *APIClient_GetChatSettings_Call
type APIClient_GetStreamInfo_Call ¶
APIClient_GetStreamInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStreamInfo'
func (*APIClient_GetStreamInfo_Call) Return ¶
func (_c *APIClient_GetStreamInfo_Call) Return(_a0 twitch.GetStreamsResponse, _a1 error) *APIClient_GetStreamInfo_Call
func (*APIClient_GetStreamInfo_Call) Run ¶
func (_c *APIClient_GetStreamInfo_Call) Run(run func(ctx context.Context, broadcastID []string)) *APIClient_GetStreamInfo_Call
func (*APIClient_GetStreamInfo_Call) RunAndReturn ¶
func (_c *APIClient_GetStreamInfo_Call) RunAndReturn(run func(context.Context, []string) (twitch.GetStreamsResponse, error)) *APIClient_GetStreamInfo_Call
type APIClient_GetUsers_Call ¶
APIClient_GetUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUsers'
func (*APIClient_GetUsers_Call) Return ¶
func (_c *APIClient_GetUsers_Call) Return(_a0 twitch.UserResponse, _a1 error) *APIClient_GetUsers_Call
func (*APIClient_GetUsers_Call) Run ¶
func (_c *APIClient_GetUsers_Call) Run(run func(ctx context.Context, logins []string, ids []string)) *APIClient_GetUsers_Call
func (*APIClient_GetUsers_Call) RunAndReturn ¶
func (_c *APIClient_GetUsers_Call) RunAndReturn(run func(context.Context, []string, []string) (twitch.UserResponse, error)) *APIClient_GetUsers_Call
type AccountProvider ¶
AccountProvider is an autogenerated mock type for the AccountProvider type
func NewAccountProvider ¶
func NewAccountProvider(t interface { mock.TestingT Cleanup(func()) }) *AccountProvider
NewAccountProvider creates a new instance of AccountProvider. 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 (*AccountProvider) EXPECT ¶
func (_m *AccountProvider) EXPECT() *AccountProvider_Expecter
func (*AccountProvider) GetAccountBy ¶
func (_m *AccountProvider) GetAccountBy(id string) (save.Account, error)
GetAccountBy provides a mock function with given fields: id
func (*AccountProvider) GetAllAccounts ¶
func (_m *AccountProvider) GetAllAccounts() ([]save.Account, error)
GetAllAccounts provides a mock function with given fields:
func (*AccountProvider) UpdateTokensFor ¶
func (_m *AccountProvider) UpdateTokensFor(id string, accessToken string, refreshToken string) error
UpdateTokensFor provides a mock function with given fields: id, accessToken, refreshToken
type AccountProvider_Expecter ¶
type AccountProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*AccountProvider_Expecter) GetAccountBy ¶
func (_e *AccountProvider_Expecter) GetAccountBy(id interface{}) *AccountProvider_GetAccountBy_Call
GetAccountBy is a helper method to define mock.On call
- id string
func (*AccountProvider_Expecter) GetAllAccounts ¶
func (_e *AccountProvider_Expecter) GetAllAccounts() *AccountProvider_GetAllAccounts_Call
GetAllAccounts is a helper method to define mock.On call
func (*AccountProvider_Expecter) UpdateTokensFor ¶
func (_e *AccountProvider_Expecter) UpdateTokensFor(id interface{}, accessToken interface{}, refreshToken interface{}) *AccountProvider_UpdateTokensFor_Call
UpdateTokensFor is a helper method to define mock.On call
- id string
- accessToken string
- refreshToken string
type AccountProvider_GetAccountBy_Call ¶
AccountProvider_GetAccountBy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAccountBy'
func (*AccountProvider_GetAccountBy_Call) Return ¶
func (_c *AccountProvider_GetAccountBy_Call) Return(_a0 save.Account, _a1 error) *AccountProvider_GetAccountBy_Call
func (*AccountProvider_GetAccountBy_Call) Run ¶
func (_c *AccountProvider_GetAccountBy_Call) Run(run func(id string)) *AccountProvider_GetAccountBy_Call
func (*AccountProvider_GetAccountBy_Call) RunAndReturn ¶
func (_c *AccountProvider_GetAccountBy_Call) RunAndReturn(run func(string) (save.Account, error)) *AccountProvider_GetAccountBy_Call
type AccountProvider_GetAllAccounts_Call ¶
AccountProvider_GetAllAccounts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllAccounts'
func (*AccountProvider_GetAllAccounts_Call) Return ¶
func (_c *AccountProvider_GetAllAccounts_Call) Return(_a0 []save.Account, _a1 error) *AccountProvider_GetAllAccounts_Call
func (*AccountProvider_GetAllAccounts_Call) Run ¶
func (_c *AccountProvider_GetAllAccounts_Call) Run(run func()) *AccountProvider_GetAllAccounts_Call
func (*AccountProvider_GetAllAccounts_Call) RunAndReturn ¶
func (_c *AccountProvider_GetAllAccounts_Call) RunAndReturn(run func() ([]save.Account, error)) *AccountProvider_GetAllAccounts_Call
type AccountProvider_UpdateTokensFor_Call ¶
AccountProvider_UpdateTokensFor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateTokensFor'
func (*AccountProvider_UpdateTokensFor_Call) Return ¶
func (_c *AccountProvider_UpdateTokensFor_Call) Return(_a0 error) *AccountProvider_UpdateTokensFor_Call
func (*AccountProvider_UpdateTokensFor_Call) Run ¶
func (_c *AccountProvider_UpdateTokensFor_Call) Run(run func(id string, accessToken string, refreshToken string)) *AccountProvider_UpdateTokensFor_Call
func (*AccountProvider_UpdateTokensFor_Call) RunAndReturn ¶
func (_c *AccountProvider_UpdateTokensFor_Call) RunAndReturn(run func(string, string, string) error) *AccountProvider_UpdateTokensFor_Call
type BTTVEmoteFetcher ¶ added in v0.3.0
BTTVEmoteFetcher is an autogenerated mock type for the BTTVEmoteFetcher type
func NewBTTVEmoteFetcher ¶ added in v0.3.0
func NewBTTVEmoteFetcher(t interface { mock.TestingT Cleanup(func()) }) *BTTVEmoteFetcher
NewBTTVEmoteFetcher creates a new instance of BTTVEmoteFetcher. 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 (*BTTVEmoteFetcher) EXPECT ¶ added in v0.3.0
func (_m *BTTVEmoteFetcher) EXPECT() *BTTVEmoteFetcher_Expecter
func (*BTTVEmoteFetcher) GetChannelEmotes ¶ added in v0.3.0
func (_m *BTTVEmoteFetcher) GetChannelEmotes(ctx context.Context, broadcaster string) (bttv.UserResponse, error)
GetChannelEmotes provides a mock function with given fields: ctx, broadcaster
func (*BTTVEmoteFetcher) GetGlobalEmotes ¶ added in v0.3.0
func (_m *BTTVEmoteFetcher) GetGlobalEmotes(_a0 context.Context) (bttv.GlobalEmoteResponse, error)
GetGlobalEmotes provides a mock function with given fields: _a0
type BTTVEmoteFetcher_Expecter ¶ added in v0.3.0
type BTTVEmoteFetcher_Expecter struct {
// contains filtered or unexported fields
}
func (*BTTVEmoteFetcher_Expecter) GetChannelEmotes ¶ added in v0.3.0
func (_e *BTTVEmoteFetcher_Expecter) GetChannelEmotes(ctx interface{}, broadcaster interface{}) *BTTVEmoteFetcher_GetChannelEmotes_Call
GetChannelEmotes is a helper method to define mock.On call
- ctx context.Context
- broadcaster string
func (*BTTVEmoteFetcher_Expecter) GetGlobalEmotes ¶ added in v0.3.0
func (_e *BTTVEmoteFetcher_Expecter) GetGlobalEmotes(_a0 interface{}) *BTTVEmoteFetcher_GetGlobalEmotes_Call
GetGlobalEmotes is a helper method to define mock.On call
- _a0 context.Context
type BTTVEmoteFetcher_GetChannelEmotes_Call ¶ added in v0.3.0
BTTVEmoteFetcher_GetChannelEmotes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChannelEmotes'
func (*BTTVEmoteFetcher_GetChannelEmotes_Call) Return ¶ added in v0.3.0
func (_c *BTTVEmoteFetcher_GetChannelEmotes_Call) Return(_a0 bttv.UserResponse, _a1 error) *BTTVEmoteFetcher_GetChannelEmotes_Call
func (*BTTVEmoteFetcher_GetChannelEmotes_Call) Run ¶ added in v0.3.0
func (_c *BTTVEmoteFetcher_GetChannelEmotes_Call) Run(run func(ctx context.Context, broadcaster string)) *BTTVEmoteFetcher_GetChannelEmotes_Call
func (*BTTVEmoteFetcher_GetChannelEmotes_Call) RunAndReturn ¶ added in v0.3.0
func (_c *BTTVEmoteFetcher_GetChannelEmotes_Call) RunAndReturn(run func(context.Context, string) (bttv.UserResponse, error)) *BTTVEmoteFetcher_GetChannelEmotes_Call
type BTTVEmoteFetcher_GetGlobalEmotes_Call ¶ added in v0.3.0
BTTVEmoteFetcher_GetGlobalEmotes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGlobalEmotes'
func (*BTTVEmoteFetcher_GetGlobalEmotes_Call) Return ¶ added in v0.3.0
func (_c *BTTVEmoteFetcher_GetGlobalEmotes_Call) Return(_a0 bttv.GlobalEmoteResponse, _a1 error) *BTTVEmoteFetcher_GetGlobalEmotes_Call
func (*BTTVEmoteFetcher_GetGlobalEmotes_Call) Run ¶ added in v0.3.0
func (_c *BTTVEmoteFetcher_GetGlobalEmotes_Call) Run(run func(_a0 context.Context)) *BTTVEmoteFetcher_GetGlobalEmotes_Call
func (*BTTVEmoteFetcher_GetGlobalEmotes_Call) RunAndReturn ¶ added in v0.3.0
func (_c *BTTVEmoteFetcher_GetGlobalEmotes_Call) RunAndReturn(run func(context.Context) (bttv.GlobalEmoteResponse, error)) *BTTVEmoteFetcher_GetGlobalEmotes_Call
type ChatPool ¶ added in v0.0.10
ChatPool is an autogenerated mock type for the ChatPool type
func NewChatPool ¶ added in v0.0.10
NewChatPool creates a new instance of ChatPool. 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 (*ChatPool) EXPECT ¶ added in v0.0.10
func (_m *ChatPool) EXPECT() *ChatPool_Expecter
func (*ChatPool) ListenAndServe ¶ added in v0.0.10
func (_m *ChatPool) ListenAndServe(inbound <-chan multiplex.InboundMessage) <-chan multiplex.OutboundMessage
ListenAndServe provides a mock function with given fields: inbound
type ChatPool_Expecter ¶ added in v0.0.10
type ChatPool_Expecter struct {
// contains filtered or unexported fields
}
func (*ChatPool_Expecter) ListenAndServe ¶ added in v0.0.10
func (_e *ChatPool_Expecter) ListenAndServe(inbound interface{}) *ChatPool_ListenAndServe_Call
ListenAndServe is a helper method to define mock.On call
- inbound <-chan multiplex.InboundMessage
type ChatPool_ListenAndServe_Call ¶ added in v0.0.10
ChatPool_ListenAndServe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListenAndServe'
func (*ChatPool_ListenAndServe_Call) Return ¶ added in v0.0.10
func (_c *ChatPool_ListenAndServe_Call) Return(_a0 <-chan multiplex.OutboundMessage) *ChatPool_ListenAndServe_Call
func (*ChatPool_ListenAndServe_Call) Run ¶ added in v0.0.10
func (_c *ChatPool_ListenAndServe_Call) Run(run func(inbound <-chan multiplex.InboundMessage)) *ChatPool_ListenAndServe_Call
func (*ChatPool_ListenAndServe_Call) RunAndReturn ¶ added in v0.0.10
func (_c *ChatPool_ListenAndServe_Call) RunAndReturn(run func(<-chan multiplex.InboundMessage) <-chan multiplex.OutboundMessage) *ChatPool_ListenAndServe_Call
type DB ¶ added in v0.4.0
DB is an autogenerated mock type for the DB type
func NewDB ¶ added in v0.4.0
NewDB creates a new instance of DB. 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 (*DB) EXPECT ¶ added in v0.4.0
func (_m *DB) EXPECT() *DB_Expecter
type DB_Exec_Call ¶ added in v0.4.0
DB_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'
func (*DB_Exec_Call) Return ¶ added in v0.4.0
func (_c *DB_Exec_Call) Return(_a0 sql.Result, _a1 error) *DB_Exec_Call
func (*DB_Exec_Call) Run ¶ added in v0.4.0
func (_c *DB_Exec_Call) Run(run func(query string, args ...interface{})) *DB_Exec_Call
func (*DB_Exec_Call) RunAndReturn ¶ added in v0.4.0
func (_c *DB_Exec_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *DB_Exec_Call
type DB_Expecter ¶ added in v0.4.0
type DB_Expecter struct {
// contains filtered or unexported fields
}
func (*DB_Expecter) Exec ¶ added in v0.4.0
func (_e *DB_Expecter) Exec(query interface{}, args ...interface{}) *DB_Exec_Call
Exec is a helper method to define mock.On call
- query string
- args ...interface{}
func (*DB_Expecter) Query ¶ added in v0.5.0
func (_e *DB_Expecter) Query(query interface{}, args ...interface{}) *DB_Query_Call
Query is a helper method to define mock.On call
- query string
- args ...interface{}
type DB_Query_Call ¶ added in v0.5.0
DB_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'
func (*DB_Query_Call) Return ¶ added in v0.5.0
func (_c *DB_Query_Call) Return(_a0 *sql.Rows, _a1 error) *DB_Query_Call
func (*DB_Query_Call) Run ¶ added in v0.5.0
func (_c *DB_Query_Call) Run(run func(query string, args ...interface{})) *DB_Query_Call
func (*DB_Query_Call) RunAndReturn ¶ added in v0.5.0
func (_c *DB_Query_Call) RunAndReturn(run func(string, ...interface{}) (*sql.Rows, error)) *DB_Query_Call
type EmoteStore ¶
EmoteStore is an autogenerated mock type for the EmoteStore type
func NewEmoteStore ¶
func NewEmoteStore(t interface { mock.TestingT Cleanup(func()) }) *EmoteStore
NewEmoteStore creates a new instance of EmoteStore. 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 (*EmoteStore) EXPECT ¶
func (_m *EmoteStore) EXPECT() *EmoteStore_Expecter
func (*EmoteStore) GetAllForUser ¶
func (_m *EmoteStore) GetAllForUser(id string) emote.EmoteSet
GetAllForUser provides a mock function with given fields: id
func (*EmoteStore) RefreshGlobal ¶
func (_m *EmoteStore) RefreshGlobal(ctx context.Context) error
RefreshGlobal provides a mock function with given fields: ctx
func (*EmoteStore) RefreshLocal ¶
func (_m *EmoteStore) RefreshLocal(ctx context.Context, channelID string) error
RefreshLocal provides a mock function with given fields: ctx, channelID
type EmoteStore_Expecter ¶
type EmoteStore_Expecter struct {
// contains filtered or unexported fields
}
func (*EmoteStore_Expecter) GetAllForUser ¶
func (_e *EmoteStore_Expecter) GetAllForUser(id interface{}) *EmoteStore_GetAllForUser_Call
GetAllForUser is a helper method to define mock.On call
- id string
func (*EmoteStore_Expecter) GetByText ¶
func (_e *EmoteStore_Expecter) GetByText(channel interface{}, text interface{}) *EmoteStore_GetByText_Call
GetByText is a helper method to define mock.On call
- channel string
- text string
func (*EmoteStore_Expecter) RefreshGlobal ¶
func (_e *EmoteStore_Expecter) RefreshGlobal(ctx interface{}) *EmoteStore_RefreshGlobal_Call
RefreshGlobal is a helper method to define mock.On call
- ctx context.Context
func (*EmoteStore_Expecter) RefreshLocal ¶
func (_e *EmoteStore_Expecter) RefreshLocal(ctx interface{}, channelID interface{}) *EmoteStore_RefreshLocal_Call
RefreshLocal is a helper method to define mock.On call
- ctx context.Context
- channelID string
type EmoteStore_GetAllForUser_Call ¶
EmoteStore_GetAllForUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllForUser'
func (*EmoteStore_GetAllForUser_Call) Return ¶
func (_c *EmoteStore_GetAllForUser_Call) Return(_a0 emote.EmoteSet) *EmoteStore_GetAllForUser_Call
func (*EmoteStore_GetAllForUser_Call) Run ¶
func (_c *EmoteStore_GetAllForUser_Call) Run(run func(id string)) *EmoteStore_GetAllForUser_Call
func (*EmoteStore_GetAllForUser_Call) RunAndReturn ¶
func (_c *EmoteStore_GetAllForUser_Call) RunAndReturn(run func(string) emote.EmoteSet) *EmoteStore_GetAllForUser_Call
type EmoteStore_GetByText_Call ¶
EmoteStore_GetByText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByText'
func (*EmoteStore_GetByText_Call) Return ¶
func (_c *EmoteStore_GetByText_Call) Return(_a0 emote.Emote, _a1 bool) *EmoteStore_GetByText_Call
func (*EmoteStore_GetByText_Call) Run ¶
func (_c *EmoteStore_GetByText_Call) Run(run func(channel string, text string)) *EmoteStore_GetByText_Call
func (*EmoteStore_GetByText_Call) RunAndReturn ¶
func (_c *EmoteStore_GetByText_Call) RunAndReturn(run func(string, string) (emote.Emote, bool)) *EmoteStore_GetByText_Call
type EmoteStore_RefreshGlobal_Call ¶
EmoteStore_RefreshGlobal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefreshGlobal'
func (*EmoteStore_RefreshGlobal_Call) Return ¶
func (_c *EmoteStore_RefreshGlobal_Call) Return(_a0 error) *EmoteStore_RefreshGlobal_Call
func (*EmoteStore_RefreshGlobal_Call) Run ¶
func (_c *EmoteStore_RefreshGlobal_Call) Run(run func(ctx context.Context)) *EmoteStore_RefreshGlobal_Call
func (*EmoteStore_RefreshGlobal_Call) RunAndReturn ¶
func (_c *EmoteStore_RefreshGlobal_Call) RunAndReturn(run func(context.Context) error) *EmoteStore_RefreshGlobal_Call
type EmoteStore_RefreshLocal_Call ¶
EmoteStore_RefreshLocal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefreshLocal'
func (*EmoteStore_RefreshLocal_Call) Return ¶
func (_c *EmoteStore_RefreshLocal_Call) Return(_a0 error) *EmoteStore_RefreshLocal_Call
func (*EmoteStore_RefreshLocal_Call) Run ¶
func (_c *EmoteStore_RefreshLocal_Call) Run(run func(ctx context.Context, channelID string)) *EmoteStore_RefreshLocal_Call
func (*EmoteStore_RefreshLocal_Call) RunAndReturn ¶
func (_c *EmoteStore_RefreshLocal_Call) RunAndReturn(run func(context.Context, string) error) *EmoteStore_RefreshLocal_Call
type EventSubPool ¶ added in v0.3.0
EventSubPool is an autogenerated mock type for the EventSubPool type
func NewEventSubPool ¶ added in v0.3.0
func NewEventSubPool(t interface { mock.TestingT Cleanup(func()) }) *EventSubPool
NewEventSubPool creates a new instance of EventSubPool. 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 (*EventSubPool) EXPECT ¶ added in v0.3.0
func (_m *EventSubPool) EXPECT() *EventSubPool_Expecter
func (*EventSubPool) ListenAndServe ¶ added in v0.3.0
func (_m *EventSubPool) ListenAndServe(inbound <-chan multiplex.EventSubInboundMessage) error
ListenAndServe provides a mock function with given fields: inbound
type EventSubPool_Expecter ¶ added in v0.3.0
type EventSubPool_Expecter struct {
// contains filtered or unexported fields
}
func (*EventSubPool_Expecter) ListenAndServe ¶ added in v0.3.0
func (_e *EventSubPool_Expecter) ListenAndServe(inbound interface{}) *EventSubPool_ListenAndServe_Call
ListenAndServe is a helper method to define mock.On call
- inbound <-chan multiplex.EventSubInboundMessage
type EventSubPool_ListenAndServe_Call ¶ added in v0.3.0
EventSubPool_ListenAndServe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListenAndServe'
func (*EventSubPool_ListenAndServe_Call) Return ¶ added in v0.3.0
func (_c *EventSubPool_ListenAndServe_Call) Return(_a0 error) *EventSubPool_ListenAndServe_Call
func (*EventSubPool_ListenAndServe_Call) Run ¶ added in v0.3.0
func (_c *EventSubPool_ListenAndServe_Call) Run(run func(inbound <-chan multiplex.EventSubInboundMessage)) *EventSubPool_ListenAndServe_Call
func (*EventSubPool_ListenAndServe_Call) RunAndReturn ¶ added in v0.3.0
func (_c *EventSubPool_ListenAndServe_Call) RunAndReturn(run func(<-chan multiplex.EventSubInboundMessage) error) *EventSubPool_ListenAndServe_Call
type RecentMessageService ¶ added in v0.3.0
RecentMessageService is an autogenerated mock type for the RecentMessageService type
func NewRecentMessageService ¶ added in v0.3.0
func NewRecentMessageService(t interface { mock.TestingT Cleanup(func()) }) *RecentMessageService
NewRecentMessageService creates a new instance of RecentMessageService. 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 (*RecentMessageService) EXPECT ¶ added in v0.3.0
func (_m *RecentMessageService) EXPECT() *RecentMessageService_Expecter
func (*RecentMessageService) GetRecentMessagesFor ¶ added in v0.3.0
func (_m *RecentMessageService) GetRecentMessagesFor(ctx context.Context, channelLogin string) ([]twitch.IRCer, error)
GetRecentMessagesFor provides a mock function with given fields: ctx, channelLogin
type RecentMessageService_Expecter ¶ added in v0.3.0
type RecentMessageService_Expecter struct {
// contains filtered or unexported fields
}
func (*RecentMessageService_Expecter) GetRecentMessagesFor ¶ added in v0.3.0
func (_e *RecentMessageService_Expecter) GetRecentMessagesFor(ctx interface{}, channelLogin interface{}) *RecentMessageService_GetRecentMessagesFor_Call
GetRecentMessagesFor is a helper method to define mock.On call
- ctx context.Context
- channelLogin string
type RecentMessageService_GetRecentMessagesFor_Call ¶ added in v0.3.0
RecentMessageService_GetRecentMessagesFor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRecentMessagesFor'
func (*RecentMessageService_GetRecentMessagesFor_Call) Return ¶ added in v0.3.0
func (_c *RecentMessageService_GetRecentMessagesFor_Call) Return(_a0 []twitch.IRCer, _a1 error) *RecentMessageService_GetRecentMessagesFor_Call
func (*RecentMessageService_GetRecentMessagesFor_Call) Run ¶ added in v0.3.0
func (_c *RecentMessageService_GetRecentMessagesFor_Call) Run(run func(ctx context.Context, channelLogin string)) *RecentMessageService_GetRecentMessagesFor_Call
func (*RecentMessageService_GetRecentMessagesFor_Call) RunAndReturn ¶ added in v0.3.0
func (_c *RecentMessageService_GetRecentMessagesFor_Call) RunAndReturn(run func(context.Context, string) ([]twitch.IRCer, error)) *RecentMessageService_GetRecentMessagesFor_Call
type SevenTVEmoteFetcher ¶ added in v0.3.0
SevenTVEmoteFetcher is an autogenerated mock type for the SevenTVEmoteFetcher type
func NewSevenTVEmoteFetcher ¶ added in v0.3.0
func NewSevenTVEmoteFetcher(t interface { mock.TestingT Cleanup(func()) }) *SevenTVEmoteFetcher
NewSevenTVEmoteFetcher creates a new instance of SevenTVEmoteFetcher. 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 (*SevenTVEmoteFetcher) EXPECT ¶ added in v0.3.0
func (_m *SevenTVEmoteFetcher) EXPECT() *SevenTVEmoteFetcher_Expecter
func (*SevenTVEmoteFetcher) GetChannelEmotes ¶ added in v0.3.0
func (_m *SevenTVEmoteFetcher) GetChannelEmotes(ctx context.Context, broadcaster string) (seventv.ChannelEmoteResponse, error)
GetChannelEmotes provides a mock function with given fields: ctx, broadcaster
func (*SevenTVEmoteFetcher) GetGlobalEmotes ¶ added in v0.3.0
func (_m *SevenTVEmoteFetcher) GetGlobalEmotes(_a0 context.Context) (seventv.EmoteResponse, error)
GetGlobalEmotes provides a mock function with given fields: _a0
type SevenTVEmoteFetcher_Expecter ¶ added in v0.3.0
type SevenTVEmoteFetcher_Expecter struct {
// contains filtered or unexported fields
}
func (*SevenTVEmoteFetcher_Expecter) GetChannelEmotes ¶ added in v0.3.0
func (_e *SevenTVEmoteFetcher_Expecter) GetChannelEmotes(ctx interface{}, broadcaster interface{}) *SevenTVEmoteFetcher_GetChannelEmotes_Call
GetChannelEmotes is a helper method to define mock.On call
- ctx context.Context
- broadcaster string
func (*SevenTVEmoteFetcher_Expecter) GetGlobalEmotes ¶ added in v0.3.0
func (_e *SevenTVEmoteFetcher_Expecter) GetGlobalEmotes(_a0 interface{}) *SevenTVEmoteFetcher_GetGlobalEmotes_Call
GetGlobalEmotes is a helper method to define mock.On call
- _a0 context.Context
type SevenTVEmoteFetcher_GetChannelEmotes_Call ¶ added in v0.3.0
SevenTVEmoteFetcher_GetChannelEmotes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChannelEmotes'
func (*SevenTVEmoteFetcher_GetChannelEmotes_Call) Return ¶ added in v0.3.0
func (_c *SevenTVEmoteFetcher_GetChannelEmotes_Call) Return(_a0 seventv.ChannelEmoteResponse, _a1 error) *SevenTVEmoteFetcher_GetChannelEmotes_Call
func (*SevenTVEmoteFetcher_GetChannelEmotes_Call) Run ¶ added in v0.3.0
func (_c *SevenTVEmoteFetcher_GetChannelEmotes_Call) Run(run func(ctx context.Context, broadcaster string)) *SevenTVEmoteFetcher_GetChannelEmotes_Call
func (*SevenTVEmoteFetcher_GetChannelEmotes_Call) RunAndReturn ¶ added in v0.3.0
func (_c *SevenTVEmoteFetcher_GetChannelEmotes_Call) RunAndReturn(run func(context.Context, string) (seventv.ChannelEmoteResponse, error)) *SevenTVEmoteFetcher_GetChannelEmotes_Call
type SevenTVEmoteFetcher_GetGlobalEmotes_Call ¶ added in v0.3.0
SevenTVEmoteFetcher_GetGlobalEmotes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGlobalEmotes'
func (*SevenTVEmoteFetcher_GetGlobalEmotes_Call) Return ¶ added in v0.3.0
func (_c *SevenTVEmoteFetcher_GetGlobalEmotes_Call) Return(_a0 seventv.EmoteResponse, _a1 error) *SevenTVEmoteFetcher_GetGlobalEmotes_Call
func (*SevenTVEmoteFetcher_GetGlobalEmotes_Call) Run ¶ added in v0.3.0
func (_c *SevenTVEmoteFetcher_GetGlobalEmotes_Call) Run(run func(_a0 context.Context)) *SevenTVEmoteFetcher_GetGlobalEmotes_Call
func (*SevenTVEmoteFetcher_GetGlobalEmotes_Call) RunAndReturn ¶ added in v0.3.0
func (_c *SevenTVEmoteFetcher_GetGlobalEmotes_Call) RunAndReturn(run func(context.Context) (seventv.EmoteResponse, error)) *SevenTVEmoteFetcher_GetGlobalEmotes_Call
type TwitchEmoteFetcher ¶ added in v0.3.0
TwitchEmoteFetcher is an autogenerated mock type for the TwitchEmoteFetcher type
func NewTwitchEmoteFetcher ¶ added in v0.3.0
func NewTwitchEmoteFetcher(t interface { mock.TestingT Cleanup(func()) }) *TwitchEmoteFetcher
NewTwitchEmoteFetcher creates a new instance of TwitchEmoteFetcher. 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 (*TwitchEmoteFetcher) EXPECT ¶ added in v0.3.0
func (_m *TwitchEmoteFetcher) EXPECT() *TwitchEmoteFetcher_Expecter
func (*TwitchEmoteFetcher) GetChannelEmotes ¶ added in v0.3.0
func (_m *TwitchEmoteFetcher) GetChannelEmotes(ctx context.Context, broadcaster string) (twitch.EmoteResponse, error)
GetChannelEmotes provides a mock function with given fields: ctx, broadcaster
func (*TwitchEmoteFetcher) GetGlobalEmotes ¶ added in v0.3.0
func (_m *TwitchEmoteFetcher) GetGlobalEmotes(_a0 context.Context) (twitch.EmoteResponse, error)
GetGlobalEmotes provides a mock function with given fields: _a0
type TwitchEmoteFetcher_Expecter ¶ added in v0.3.0
type TwitchEmoteFetcher_Expecter struct {
// contains filtered or unexported fields
}
func (*TwitchEmoteFetcher_Expecter) GetChannelEmotes ¶ added in v0.3.0
func (_e *TwitchEmoteFetcher_Expecter) GetChannelEmotes(ctx interface{}, broadcaster interface{}) *TwitchEmoteFetcher_GetChannelEmotes_Call
GetChannelEmotes is a helper method to define mock.On call
- ctx context.Context
- broadcaster string
func (*TwitchEmoteFetcher_Expecter) GetGlobalEmotes ¶ added in v0.3.0
func (_e *TwitchEmoteFetcher_Expecter) GetGlobalEmotes(_a0 interface{}) *TwitchEmoteFetcher_GetGlobalEmotes_Call
GetGlobalEmotes is a helper method to define mock.On call
- _a0 context.Context
type TwitchEmoteFetcher_GetChannelEmotes_Call ¶ added in v0.3.0
TwitchEmoteFetcher_GetChannelEmotes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChannelEmotes'
func (*TwitchEmoteFetcher_GetChannelEmotes_Call) Return ¶ added in v0.3.0
func (_c *TwitchEmoteFetcher_GetChannelEmotes_Call) Return(_a0 twitch.EmoteResponse, _a1 error) *TwitchEmoteFetcher_GetChannelEmotes_Call
func (*TwitchEmoteFetcher_GetChannelEmotes_Call) Run ¶ added in v0.3.0
func (_c *TwitchEmoteFetcher_GetChannelEmotes_Call) Run(run func(ctx context.Context, broadcaster string)) *TwitchEmoteFetcher_GetChannelEmotes_Call
func (*TwitchEmoteFetcher_GetChannelEmotes_Call) RunAndReturn ¶ added in v0.3.0
func (_c *TwitchEmoteFetcher_GetChannelEmotes_Call) RunAndReturn(run func(context.Context, string) (twitch.EmoteResponse, error)) *TwitchEmoteFetcher_GetChannelEmotes_Call
type TwitchEmoteFetcher_GetGlobalEmotes_Call ¶ added in v0.3.0
TwitchEmoteFetcher_GetGlobalEmotes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGlobalEmotes'
func (*TwitchEmoteFetcher_GetGlobalEmotes_Call) Return ¶ added in v0.3.0
func (_c *TwitchEmoteFetcher_GetGlobalEmotes_Call) Return(_a0 twitch.EmoteResponse, _a1 error) *TwitchEmoteFetcher_GetGlobalEmotes_Call
func (*TwitchEmoteFetcher_GetGlobalEmotes_Call) Run ¶ added in v0.3.0
func (_c *TwitchEmoteFetcher_GetGlobalEmotes_Call) Run(run func(_a0 context.Context)) *TwitchEmoteFetcher_GetGlobalEmotes_Call
func (*TwitchEmoteFetcher_GetGlobalEmotes_Call) RunAndReturn ¶ added in v0.3.0
func (_c *TwitchEmoteFetcher_GetGlobalEmotes_Call) RunAndReturn(run func(context.Context) (twitch.EmoteResponse, error)) *TwitchEmoteFetcher_GetGlobalEmotes_Call