Documentation
¶
Overview ¶
Package mock_botsfw is a generated GoMock package.
Package mock_botsfw is a generated GoMock package.
Package mock_botsfw is a generated GoMock package.
Package mock_botsfw is a generated GoMock package.
Package mock_botsfw is a generated GoMock package.
Package mock_botsfw is a generated GoMock package.
Package mock_botsfw is a generated GoMock package.
Package mock_botsfw is a generated GoMock package.
Package mock_botsfw is a generated GoMock package.
Package mock_botsfw is a generated GoMock package.
Package mock_botsfw is a generated GoMock package.
Package mock_botsfw is a generated GoMock package.
Package mock_botsfw is a generated GoMock package.
Package mock_botsfw is a generated GoMock package.
Index ¶
- type MockBotContextProvider
- type MockBotContextProviderMockRecorder
- type MockBotHost
- type MockBotHostMockRecorder
- type MockBotPlatform
- type MockBotPlatformMockRecorder
- type MockBotProfile
- func (m *MockBotProfile) DefaultLocale() i18n.Locale
- func (m *MockBotProfile) EXPECT() *MockBotProfileMockRecorder
- func (m *MockBotProfile) GetTranslations() botsfw.BotTranslations
- func (m *MockBotProfile) ID() string
- func (m *MockBotProfile) NewAppUserData() botsfwmodels.AppUserData
- func (m *MockBotProfile) NewBotChatData() botsfwmodels.BotChatData
- func (m *MockBotProfile) NewPlatformUserData() botsfwmodels.PlatformUserData
- func (m *MockBotProfile) Router() botsfw.Router
- func (m *MockBotProfile) SupportedLocales() []i18n.Locale
- type MockBotProfileMockRecorder
- func (mr *MockBotProfileMockRecorder) DefaultLocale() *gomock.Call
- func (mr *MockBotProfileMockRecorder) GetTranslations() *gomock.Call
- func (mr *MockBotProfileMockRecorder) ID() *gomock.Call
- func (mr *MockBotProfileMockRecorder) NewAppUserData() *gomock.Call
- func (mr *MockBotProfileMockRecorder) NewBotChatData() *gomock.Call
- func (mr *MockBotProfileMockRecorder) NewPlatformUserData() *gomock.Call
- func (mr *MockBotProfileMockRecorder) Router() *gomock.Call
- func (mr *MockBotProfileMockRecorder) SupportedLocales() *gomock.Call
- type MockWebhookAnalytics
- type MockWebhookAnalyticsMockRecorder
- type MockWebhookContext
- func (m *MockWebhookContext) Analytics() botsfw.WebhookAnalytics
- func (m *MockWebhookContext) AppContext() botsfw.AppContext
- func (m *MockWebhookContext) AppUserData() (botsfwmodels.AppUserData, error)
- func (m *MockWebhookContext) AppUserID() string
- func (m *MockWebhookContext) BotContext() botsfw.BotContext
- func (m *MockWebhookContext) BotPlatform() botsfw.BotPlatform
- func (m *MockWebhookContext) ChatData() botsfwmodels.BotChatData
- func (m *MockWebhookContext) CommandText(title, icon string) string
- func (m *MockWebhookContext) Context() context.Context
- func (m *MockWebhookContext) DB() dal.DB
- func (m *MockWebhookContext) EXPECT() *MockWebhookContextMockRecorder
- func (m *MockWebhookContext) Environment() string
- func (m *MockWebhookContext) ExecutionContext() botsfw.ExecutionContext
- func (m *MockWebhookContext) GetBotCode() string
- func (m *MockWebhookContext) GetBotSettings() *botsfw.BotSettings
- func (m *MockWebhookContext) GetBotUser() (botsdal.BotUser, error)
- func (m *MockWebhookContext) GetBotUserForUpdate(ctx context.Context, tx dal.ReadwriteTransaction) (botsdal.BotUser, error)
- func (m *MockWebhookContext) GetBotUserID() string
- func (m *MockWebhookContext) GetTranslator(locale string) i18n.SingleLocaleTranslator
- func (m *MockWebhookContext) Input() botinput.InputMessage
- func (m *MockWebhookContext) IsInGroup() (bool, error)
- func (m *MockWebhookContext) IsNewerThen(chatEntity botsfwmodels.BotChatData) bool
- func (m *MockWebhookContext) Locale() i18n.Locale
- func (m *MockWebhookContext) MustBotChatID() string
- func (m *MockWebhookContext) NewEditMessage(text string, format botmsg.Format) (botmsg.MessageFromBot, error)
- func (m *MockWebhookContext) NewMessage(text string) botmsg.MessageFromBot
- func (m *MockWebhookContext) NewMessageByCode(messageCode string, a ...any) botmsg.MessageFromBot
- func (m *MockWebhookContext) RecordsFieldsSetter() botsfw.BotRecordsFieldsSetter
- func (m *MockWebhookContext) Request() *http.Request
- func (m *MockWebhookContext) Responder() botsfw.WebhookResponder
- func (m *MockWebhookContext) SaveBotChat() error
- func (m *MockWebhookContext) SetContext(c context.Context)
- func (m *MockWebhookContext) SetLocale(code5 string) error
- func (m *MockWebhookContext) SetUser(id string, data botsfwmodels.AppUserData)
- func (m *MockWebhookContext) Translate(key string, args ...any) string
- func (m *MockWebhookContext) TranslateNoWarning(key string, args ...any) string
- func (m *MockWebhookContext) TranslateWithMap(key string, args map[string]string) string
- func (m *MockWebhookContext) UpdateLastProcessed(chatEntity botsfwmodels.BotChatData) error
- type MockWebhookContextMockRecorder
- func (mr *MockWebhookContextMockRecorder) Analytics() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) AppContext() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) AppUserData() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) AppUserID() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) BotContext() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) BotPlatform() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) ChatData() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) CommandText(title, icon any) *gomock.Call
- func (mr *MockWebhookContextMockRecorder) Context() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) DB() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) Environment() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) ExecutionContext() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) GetBotCode() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) GetBotSettings() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) GetBotUser() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) GetBotUserForUpdate(ctx, tx any) *gomock.Call
- func (mr *MockWebhookContextMockRecorder) GetBotUserID() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) GetTranslator(locale any) *gomock.Call
- func (mr *MockWebhookContextMockRecorder) Input() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) IsInGroup() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) IsNewerThen(chatEntity any) *gomock.Call
- func (mr *MockWebhookContextMockRecorder) Locale() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) MustBotChatID() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) NewEditMessage(text, format any) *gomock.Call
- func (mr *MockWebhookContextMockRecorder) NewMessage(text any) *gomock.Call
- func (mr *MockWebhookContextMockRecorder) NewMessageByCode(messageCode any, a ...any) *gomock.Call
- func (mr *MockWebhookContextMockRecorder) RecordsFieldsSetter() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) Request() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) Responder() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) SaveBotChat() *gomock.Call
- func (mr *MockWebhookContextMockRecorder) SetContext(c any) *gomock.Call
- func (mr *MockWebhookContextMockRecorder) SetLocale(code5 any) *gomock.Call
- func (mr *MockWebhookContextMockRecorder) SetUser(id, data any) *gomock.Call
- func (mr *MockWebhookContextMockRecorder) Translate(key any, args ...any) *gomock.Call
- func (mr *MockWebhookContextMockRecorder) TranslateNoWarning(key any, args ...any) *gomock.Call
- func (mr *MockWebhookContextMockRecorder) TranslateWithMap(key, args any) *gomock.Call
- func (mr *MockWebhookContextMockRecorder) UpdateLastProcessed(chatEntity any) *gomock.Call
- type MockWebhookHandler
- func (m *MockWebhookHandler) CreateWebhookContext(args botsfw.CreateWebhookContextArgs) (botsfw.WebhookContext, error)
- func (m *MockWebhookHandler) EXPECT() *MockWebhookHandlerMockRecorder
- func (m *MockWebhookHandler) GetBotContextAndInputs(c context.Context, r *http.Request) (*botsfw.BotContext, []botinput.EntryInputs, error)
- func (m *MockWebhookHandler) GetResponder(w http.ResponseWriter, whc botsfw.WebhookContext) botsfw.WebhookResponder
- func (m *MockWebhookHandler) HandleUnmatched(whc botsfw.WebhookContext) botmsg.MessageFromBot
- func (m *MockWebhookHandler) HandleWebhookRequest(w http.ResponseWriter, r *http.Request)
- func (m *MockWebhookHandler) RegisterHttpHandlers(driver botsfw.WebhookDriver, botHost botsfw.BotHost, router botsfw.HttpRouter, ...)
- type MockWebhookHandlerMockRecorder
- func (mr *MockWebhookHandlerMockRecorder) CreateWebhookContext(args any) *gomock.Call
- func (mr *MockWebhookHandlerMockRecorder) GetBotContextAndInputs(c, r any) *gomock.Call
- func (mr *MockWebhookHandlerMockRecorder) GetResponder(w, whc any) *gomock.Call
- func (mr *MockWebhookHandlerMockRecorder) HandleUnmatched(whc any) *gomock.Call
- func (mr *MockWebhookHandlerMockRecorder) HandleWebhookRequest(w, r any) *gomock.Call
- func (mr *MockWebhookHandlerMockRecorder) RegisterHttpHandlers(driver, botHost, router, pathPrefix any) *gomock.Call
- type MockWebhookI18n
- func (m *MockWebhookI18n) CommandText(title, icon string) string
- func (m *MockWebhookI18n) EXPECT() *MockWebhookI18nMockRecorder
- func (m *MockWebhookI18n) GetTranslator(locale string) i18n.SingleLocaleTranslator
- func (m *MockWebhookI18n) Locale() i18n.Locale
- func (m *MockWebhookI18n) SetLocale(code5 string) error
- func (m *MockWebhookI18n) Translate(key string, args ...any) string
- func (m *MockWebhookI18n) TranslateNoWarning(key string, args ...any) string
- func (m *MockWebhookI18n) TranslateWithMap(key string, args map[string]string) string
- type MockWebhookI18nMockRecorder
- func (mr *MockWebhookI18nMockRecorder) CommandText(title, icon any) *gomock.Call
- func (mr *MockWebhookI18nMockRecorder) GetTranslator(locale any) *gomock.Call
- func (mr *MockWebhookI18nMockRecorder) Locale() *gomock.Call
- func (mr *MockWebhookI18nMockRecorder) SetLocale(code5 any) *gomock.Call
- func (mr *MockWebhookI18nMockRecorder) Translate(key any, args ...any) *gomock.Call
- func (mr *MockWebhookI18nMockRecorder) TranslateNoWarning(key any, args ...any) *gomock.Call
- func (mr *MockWebhookI18nMockRecorder) TranslateWithMap(key, args any) *gomock.Call
- type MockWebhookInputContext
- func (m *MockWebhookInputContext) EXPECT() *MockWebhookInputContextMockRecorder
- func (m *MockWebhookInputContext) GetBotUserID() string
- func (m *MockWebhookInputContext) Input() botinput.InputMessage
- func (m *MockWebhookInputContext) IsInGroup() (bool, error)
- func (m *MockWebhookInputContext) MustBotChatID() string
- type MockWebhookInputContextMockRecorder
- type MockWebhookMessaging
- func (m *MockWebhookMessaging) EXPECT() *MockWebhookMessagingMockRecorder
- func (m *MockWebhookMessaging) NewEditMessage(text string, format botmsg.Format) (botmsg.MessageFromBot, error)
- func (m *MockWebhookMessaging) NewMessage(text string) botmsg.MessageFromBot
- func (m *MockWebhookMessaging) NewMessageByCode(messageCode string, a ...any) botmsg.MessageFromBot
- func (m *MockWebhookMessaging) Responder() botsfw.WebhookResponder
- type MockWebhookMessagingMockRecorder
- func (mr *MockWebhookMessagingMockRecorder) NewEditMessage(text, format any) *gomock.Call
- func (mr *MockWebhookMessagingMockRecorder) NewMessage(text any) *gomock.Call
- func (mr *MockWebhookMessagingMockRecorder) NewMessageByCode(messageCode any, a ...any) *gomock.Call
- func (mr *MockWebhookMessagingMockRecorder) Responder() *gomock.Call
- type MockWebhookRequestContext
- func (m *MockWebhookRequestContext) AppContext() botsfw.AppContext
- func (m *MockWebhookRequestContext) BotContext() botsfw.BotContext
- func (m *MockWebhookRequestContext) BotPlatform() botsfw.BotPlatform
- func (m *MockWebhookRequestContext) Context() context.Context
- func (m *MockWebhookRequestContext) DB() dal.DB
- func (m *MockWebhookRequestContext) EXPECT() *MockWebhookRequestContextMockRecorder
- func (m *MockWebhookRequestContext) Environment() string
- func (m *MockWebhookRequestContext) ExecutionContext() botsfw.ExecutionContext
- func (m *MockWebhookRequestContext) GetBotCode() string
- func (m *MockWebhookRequestContext) GetBotSettings() *botsfw.BotSettings
- func (m *MockWebhookRequestContext) Request() *http.Request
- func (m *MockWebhookRequestContext) SetContext(c context.Context)
- type MockWebhookRequestContextMockRecorder
- func (mr *MockWebhookRequestContextMockRecorder) AppContext() *gomock.Call
- func (mr *MockWebhookRequestContextMockRecorder) BotContext() *gomock.Call
- func (mr *MockWebhookRequestContextMockRecorder) BotPlatform() *gomock.Call
- func (mr *MockWebhookRequestContextMockRecorder) Context() *gomock.Call
- func (mr *MockWebhookRequestContextMockRecorder) DB() *gomock.Call
- func (mr *MockWebhookRequestContextMockRecorder) Environment() *gomock.Call
- func (mr *MockWebhookRequestContextMockRecorder) ExecutionContext() *gomock.Call
- func (mr *MockWebhookRequestContextMockRecorder) GetBotCode() *gomock.Call
- func (mr *MockWebhookRequestContextMockRecorder) GetBotSettings() *gomock.Call
- func (mr *MockWebhookRequestContextMockRecorder) Request() *gomock.Call
- func (mr *MockWebhookRequestContextMockRecorder) SetContext(c any) *gomock.Call
- type MockWebhookResponder
- type MockWebhookResponderMockRecorder
- type MockWebhookTelemetry
- type MockWebhookTelemetryMockRecorder
- type MockWebhookUserData
- func (m *MockWebhookUserData) AppUserData() (botsfwmodels.AppUserData, error)
- func (m *MockWebhookUserData) AppUserID() string
- func (m *MockWebhookUserData) ChatData() botsfwmodels.BotChatData
- func (m *MockWebhookUserData) EXPECT() *MockWebhookUserDataMockRecorder
- func (m *MockWebhookUserData) GetBotUser() (botsdal.BotUser, error)
- func (m *MockWebhookUserData) GetBotUserForUpdate(ctx context.Context, tx dal.ReadwriteTransaction) (botsdal.BotUser, error)
- func (m *MockWebhookUserData) IsNewerThen(chatEntity botsfwmodels.BotChatData) bool
- func (m *MockWebhookUserData) RecordsFieldsSetter() botsfw.BotRecordsFieldsSetter
- func (m *MockWebhookUserData) SaveBotChat() error
- func (m *MockWebhookUserData) SetUser(id string, data botsfwmodels.AppUserData)
- func (m *MockWebhookUserData) UpdateLastProcessed(chatEntity botsfwmodels.BotChatData) error
- type MockWebhookUserDataMockRecorder
- func (mr *MockWebhookUserDataMockRecorder) AppUserData() *gomock.Call
- func (mr *MockWebhookUserDataMockRecorder) AppUserID() *gomock.Call
- func (mr *MockWebhookUserDataMockRecorder) ChatData() *gomock.Call
- func (mr *MockWebhookUserDataMockRecorder) GetBotUser() *gomock.Call
- func (mr *MockWebhookUserDataMockRecorder) GetBotUserForUpdate(ctx, tx any) *gomock.Call
- func (mr *MockWebhookUserDataMockRecorder) IsNewerThen(chatEntity any) *gomock.Call
- func (mr *MockWebhookUserDataMockRecorder) RecordsFieldsSetter() *gomock.Call
- func (mr *MockWebhookUserDataMockRecorder) SaveBotChat() *gomock.Call
- func (mr *MockWebhookUserDataMockRecorder) SetUser(id, data any) *gomock.Call
- func (mr *MockWebhookUserDataMockRecorder) UpdateLastProcessed(chatEntity any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBotContextProvider ¶ added in v0.62.0
type MockBotContextProvider struct {
// contains filtered or unexported fields
}
MockBotContextProvider is a mock of BotContextProvider interface.
func NewMockBotContextProvider ¶ added in v0.62.0
func NewMockBotContextProvider(ctrl *gomock.Controller) *MockBotContextProvider
NewMockBotContextProvider creates a new mock instance.
func (*MockBotContextProvider) EXPECT ¶ added in v0.62.0
func (m *MockBotContextProvider) EXPECT() *MockBotContextProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBotContextProvider) GetBotContext ¶ added in v0.62.0
func (m *MockBotContextProvider) GetBotContext(ctx context.Context, platformID botsfwconst.Platform, botID string) (*botsfw.BotContext, error)
GetBotContext mocks base method.
type MockBotContextProviderMockRecorder ¶ added in v0.62.0
type MockBotContextProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockBotContextProviderMockRecorder is the mock recorder for MockBotContextProvider.
func (*MockBotContextProviderMockRecorder) GetBotContext ¶ added in v0.62.0
func (mr *MockBotContextProviderMockRecorder) GetBotContext(ctx, platformID, botID any) *gomock.Call
GetBotContext indicates an expected call of GetBotContext.
type MockBotHost ¶
type MockBotHost struct {
// contains filtered or unexported fields
}
MockBotHost is a mock of BotHost interface.
func NewMockBotHost ¶
func NewMockBotHost(ctrl *gomock.Controller) *MockBotHost
NewMockBotHost creates a new mock instance.
func (*MockBotHost) Context ¶
func (m *MockBotHost) Context(r *http.Request) context.Context
Context mocks base method.
func (*MockBotHost) EXPECT ¶
func (m *MockBotHost) EXPECT() *MockBotHostMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBotHost) GetHTTPClient ¶
func (m *MockBotHost) GetHTTPClient(c context.Context) *http.Client
GetHTTPClient mocks base method.
type MockBotHostMockRecorder ¶
type MockBotHostMockRecorder struct {
// contains filtered or unexported fields
}
MockBotHostMockRecorder is the mock recorder for MockBotHost.
func (*MockBotHostMockRecorder) Context ¶
func (mr *MockBotHostMockRecorder) Context(r any) *gomock.Call
Context indicates an expected call of Context.
func (*MockBotHostMockRecorder) GetHTTPClient ¶
func (mr *MockBotHostMockRecorder) GetHTTPClient(c any) *gomock.Call
GetHTTPClient indicates an expected call of GetHTTPClient.
type MockBotPlatform ¶
type MockBotPlatform struct {
// contains filtered or unexported fields
}
MockBotPlatform is a mock of BotPlatform interface.
func NewMockBotPlatform ¶
func NewMockBotPlatform(ctrl *gomock.Controller) *MockBotPlatform
NewMockBotPlatform creates a new mock instance.
func (*MockBotPlatform) EXPECT ¶
func (m *MockBotPlatform) EXPECT() *MockBotPlatformMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBotPlatform) Version ¶
func (m *MockBotPlatform) Version() string
Version mocks base method.
type MockBotPlatformMockRecorder ¶
type MockBotPlatformMockRecorder struct {
// contains filtered or unexported fields
}
MockBotPlatformMockRecorder is the mock recorder for MockBotPlatform.
func (*MockBotPlatformMockRecorder) ID ¶
func (mr *MockBotPlatformMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockBotPlatformMockRecorder) Version ¶
func (mr *MockBotPlatformMockRecorder) Version() *gomock.Call
Version indicates an expected call of Version.
type MockBotProfile ¶ added in v0.71.2
type MockBotProfile struct {
// contains filtered or unexported fields
}
MockBotProfile is a mock of BotProfile interface.
func NewMockBotProfile ¶ added in v0.71.2
func NewMockBotProfile(ctrl *gomock.Controller) *MockBotProfile
NewMockBotProfile creates a new mock instance.
func (*MockBotProfile) DefaultLocale ¶ added in v0.71.2
func (m *MockBotProfile) DefaultLocale() i18n.Locale
DefaultLocale mocks base method.
func (*MockBotProfile) EXPECT ¶ added in v0.71.2
func (m *MockBotProfile) EXPECT() *MockBotProfileMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBotProfile) GetTranslations ¶ added in v0.71.2
func (m *MockBotProfile) GetTranslations() botsfw.BotTranslations
GetTranslations mocks base method.
func (*MockBotProfile) ID ¶ added in v0.71.2
func (m *MockBotProfile) ID() string
ID mocks base method.
func (*MockBotProfile) NewAppUserData ¶ added in v0.71.2
func (m *MockBotProfile) NewAppUserData() botsfwmodels.AppUserData
NewAppUserData mocks base method.
func (*MockBotProfile) NewBotChatData ¶ added in v0.71.2
func (m *MockBotProfile) NewBotChatData() botsfwmodels.BotChatData
NewBotChatData mocks base method.
func (*MockBotProfile) NewPlatformUserData ¶ added in v0.71.2
func (m *MockBotProfile) NewPlatformUserData() botsfwmodels.PlatformUserData
NewPlatformUserData mocks base method.
func (*MockBotProfile) Router ¶ added in v0.71.2
func (m *MockBotProfile) Router() botsfw.Router
Router mocks base method.
func (*MockBotProfile) SupportedLocales ¶ added in v0.71.2
func (m *MockBotProfile) SupportedLocales() []i18n.Locale
SupportedLocales mocks base method.
type MockBotProfileMockRecorder ¶ added in v0.71.2
type MockBotProfileMockRecorder struct {
// contains filtered or unexported fields
}
MockBotProfileMockRecorder is the mock recorder for MockBotProfile.
func (*MockBotProfileMockRecorder) DefaultLocale ¶ added in v0.71.2
func (mr *MockBotProfileMockRecorder) DefaultLocale() *gomock.Call
DefaultLocale indicates an expected call of DefaultLocale.
func (*MockBotProfileMockRecorder) GetTranslations ¶ added in v0.71.2
func (mr *MockBotProfileMockRecorder) GetTranslations() *gomock.Call
GetTranslations indicates an expected call of GetTranslations.
func (*MockBotProfileMockRecorder) ID ¶ added in v0.71.2
func (mr *MockBotProfileMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockBotProfileMockRecorder) NewAppUserData ¶ added in v0.71.2
func (mr *MockBotProfileMockRecorder) NewAppUserData() *gomock.Call
NewAppUserData indicates an expected call of NewAppUserData.
func (*MockBotProfileMockRecorder) NewBotChatData ¶ added in v0.71.2
func (mr *MockBotProfileMockRecorder) NewBotChatData() *gomock.Call
NewBotChatData indicates an expected call of NewBotChatData.
func (*MockBotProfileMockRecorder) NewPlatformUserData ¶ added in v0.71.2
func (mr *MockBotProfileMockRecorder) NewPlatformUserData() *gomock.Call
NewPlatformUserData indicates an expected call of NewPlatformUserData.
func (*MockBotProfileMockRecorder) Router ¶ added in v0.71.2
func (mr *MockBotProfileMockRecorder) Router() *gomock.Call
Router indicates an expected call of Router.
func (*MockBotProfileMockRecorder) SupportedLocales ¶ added in v0.71.2
func (mr *MockBotProfileMockRecorder) SupportedLocales() *gomock.Call
SupportedLocales indicates an expected call of SupportedLocales.
type MockWebhookAnalytics ¶ added in v0.71.36
type MockWebhookAnalytics struct {
// contains filtered or unexported fields
}
MockWebhookAnalytics is a mock of WebhookAnalytics interface.
func NewMockWebhookAnalytics ¶ added in v0.71.36
func NewMockWebhookAnalytics(ctrl *gomock.Controller) *MockWebhookAnalytics
NewMockWebhookAnalytics creates a new mock instance.
func (*MockWebhookAnalytics) EXPECT ¶ added in v0.71.36
func (m *MockWebhookAnalytics) EXPECT() *MockWebhookAnalyticsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWebhookAnalytics) Enqueue ¶ added in v0.71.36
func (m *MockWebhookAnalytics) Enqueue(message analytics.Message)
Enqueue mocks base method.
type MockWebhookAnalyticsMockRecorder ¶ added in v0.71.36
type MockWebhookAnalyticsMockRecorder struct {
// contains filtered or unexported fields
}
MockWebhookAnalyticsMockRecorder is the mock recorder for MockWebhookAnalytics.
type MockWebhookContext ¶
type MockWebhookContext struct {
// contains filtered or unexported fields
}
MockWebhookContext is a mock of WebhookContext interface.
func NewMockWebhookContext ¶
func NewMockWebhookContext(ctrl *gomock.Controller) *MockWebhookContext
NewMockWebhookContext creates a new mock instance.
func (*MockWebhookContext) Analytics ¶
func (m *MockWebhookContext) Analytics() botsfw.WebhookAnalytics
Analytics mocks base method.
func (*MockWebhookContext) AppContext ¶
func (m *MockWebhookContext) AppContext() botsfw.AppContext
AppContext mocks base method.
func (*MockWebhookContext) AppUserData ¶
func (m *MockWebhookContext) AppUserData() (botsfwmodels.AppUserData, error)
AppUserData mocks base method.
func (*MockWebhookContext) AppUserID ¶
func (m *MockWebhookContext) AppUserID() string
AppUserID mocks base method.
func (*MockWebhookContext) BotContext ¶
func (m *MockWebhookContext) BotContext() botsfw.BotContext
BotContext mocks base method.
func (*MockWebhookContext) BotPlatform ¶
func (m *MockWebhookContext) BotPlatform() botsfw.BotPlatform
BotPlatform mocks base method.
func (*MockWebhookContext) ChatData ¶
func (m *MockWebhookContext) ChatData() botsfwmodels.BotChatData
ChatData mocks base method.
func (*MockWebhookContext) CommandText ¶
func (m *MockWebhookContext) CommandText(title, icon string) string
CommandText mocks base method.
func (*MockWebhookContext) Context ¶
func (m *MockWebhookContext) Context() context.Context
Context mocks base method.
func (*MockWebhookContext) EXPECT ¶
func (m *MockWebhookContext) EXPECT() *MockWebhookContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWebhookContext) Environment ¶
func (m *MockWebhookContext) Environment() string
Environment mocks base method.
func (*MockWebhookContext) ExecutionContext ¶
func (m *MockWebhookContext) ExecutionContext() botsfw.ExecutionContext
ExecutionContext mocks base method.
func (*MockWebhookContext) GetBotCode ¶
func (m *MockWebhookContext) GetBotCode() string
GetBotCode mocks base method.
func (*MockWebhookContext) GetBotSettings ¶
func (m *MockWebhookContext) GetBotSettings() *botsfw.BotSettings
GetBotSettings mocks base method.
func (*MockWebhookContext) GetBotUser ¶
func (m *MockWebhookContext) GetBotUser() (botsdal.BotUser, error)
GetBotUser mocks base method.
func (*MockWebhookContext) GetBotUserForUpdate ¶
func (m *MockWebhookContext) GetBotUserForUpdate(ctx context.Context, tx dal.ReadwriteTransaction) (botsdal.BotUser, error)
GetBotUserForUpdate mocks base method.
func (*MockWebhookContext) GetBotUserID ¶
func (m *MockWebhookContext) GetBotUserID() string
GetBotUserID mocks base method.
func (*MockWebhookContext) GetTranslator ¶ added in v0.61.0
func (m *MockWebhookContext) GetTranslator(locale string) i18n.SingleLocaleTranslator
GetTranslator mocks base method.
func (*MockWebhookContext) Input ¶
func (m *MockWebhookContext) Input() botinput.InputMessage
Input mocks base method.
func (*MockWebhookContext) IsInGroup ¶
func (m *MockWebhookContext) IsInGroup() (bool, error)
IsInGroup mocks base method.
func (*MockWebhookContext) IsNewerThen ¶
func (m *MockWebhookContext) IsNewerThen(chatEntity botsfwmodels.BotChatData) bool
IsNewerThen mocks base method.
func (*MockWebhookContext) Locale ¶
func (m *MockWebhookContext) Locale() i18n.Locale
Locale mocks base method.
func (*MockWebhookContext) MustBotChatID ¶
func (m *MockWebhookContext) MustBotChatID() string
MustBotChatID mocks base method.
func (*MockWebhookContext) NewEditMessage ¶
func (m *MockWebhookContext) NewEditMessage(text string, format botmsg.Format) (botmsg.MessageFromBot, error)
NewEditMessage mocks base method.
func (*MockWebhookContext) NewMessage ¶
func (m *MockWebhookContext) NewMessage(text string) botmsg.MessageFromBot
NewMessage mocks base method.
func (*MockWebhookContext) NewMessageByCode ¶
func (m *MockWebhookContext) NewMessageByCode(messageCode string, a ...any) botmsg.MessageFromBot
NewMessageByCode mocks base method.
func (*MockWebhookContext) RecordsFieldsSetter ¶
func (m *MockWebhookContext) RecordsFieldsSetter() botsfw.BotRecordsFieldsSetter
RecordsFieldsSetter mocks base method.
func (*MockWebhookContext) Request ¶
func (m *MockWebhookContext) Request() *http.Request
Request mocks base method.
func (*MockWebhookContext) Responder ¶
func (m *MockWebhookContext) Responder() botsfw.WebhookResponder
Responder mocks base method.
func (*MockWebhookContext) SaveBotChat ¶
func (m *MockWebhookContext) SaveBotChat() error
SaveBotChat mocks base method.
func (*MockWebhookContext) SetContext ¶
func (m *MockWebhookContext) SetContext(c context.Context)
SetContext mocks base method.
func (*MockWebhookContext) SetLocale ¶
func (m *MockWebhookContext) SetLocale(code5 string) error
SetLocale mocks base method.
func (*MockWebhookContext) SetUser ¶ added in v0.71.0
func (m *MockWebhookContext) SetUser(id string, data botsfwmodels.AppUserData)
SetUser mocks base method.
func (*MockWebhookContext) Translate ¶
func (m *MockWebhookContext) Translate(key string, args ...any) string
Translate mocks base method.
func (*MockWebhookContext) TranslateNoWarning ¶
func (m *MockWebhookContext) TranslateNoWarning(key string, args ...any) string
TranslateNoWarning mocks base method.
func (*MockWebhookContext) TranslateWithMap ¶
func (m *MockWebhookContext) TranslateWithMap(key string, args map[string]string) string
TranslateWithMap mocks base method.
func (*MockWebhookContext) UpdateLastProcessed ¶
func (m *MockWebhookContext) UpdateLastProcessed(chatEntity botsfwmodels.BotChatData) error
UpdateLastProcessed mocks base method.
type MockWebhookContextMockRecorder ¶
type MockWebhookContextMockRecorder struct {
// contains filtered or unexported fields
}
MockWebhookContextMockRecorder is the mock recorder for MockWebhookContext.
func (*MockWebhookContextMockRecorder) Analytics ¶
func (mr *MockWebhookContextMockRecorder) Analytics() *gomock.Call
Analytics indicates an expected call of Analytics.
func (*MockWebhookContextMockRecorder) AppContext ¶
func (mr *MockWebhookContextMockRecorder) AppContext() *gomock.Call
AppContext indicates an expected call of AppContext.
func (*MockWebhookContextMockRecorder) AppUserData ¶
func (mr *MockWebhookContextMockRecorder) AppUserData() *gomock.Call
AppUserData indicates an expected call of AppUserData.
func (*MockWebhookContextMockRecorder) AppUserID ¶
func (mr *MockWebhookContextMockRecorder) AppUserID() *gomock.Call
AppUserID indicates an expected call of AppUserID.
func (*MockWebhookContextMockRecorder) BotContext ¶
func (mr *MockWebhookContextMockRecorder) BotContext() *gomock.Call
BotContext indicates an expected call of BotContext.
func (*MockWebhookContextMockRecorder) BotPlatform ¶
func (mr *MockWebhookContextMockRecorder) BotPlatform() *gomock.Call
BotPlatform indicates an expected call of BotPlatform.
func (*MockWebhookContextMockRecorder) ChatData ¶
func (mr *MockWebhookContextMockRecorder) ChatData() *gomock.Call
ChatData indicates an expected call of ChatData.
func (*MockWebhookContextMockRecorder) CommandText ¶
func (mr *MockWebhookContextMockRecorder) CommandText(title, icon any) *gomock.Call
CommandText indicates an expected call of CommandText.
func (*MockWebhookContextMockRecorder) Context ¶
func (mr *MockWebhookContextMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockWebhookContextMockRecorder) DB ¶
func (mr *MockWebhookContextMockRecorder) DB() *gomock.Call
DB indicates an expected call of DB.
func (*MockWebhookContextMockRecorder) Environment ¶
func (mr *MockWebhookContextMockRecorder) Environment() *gomock.Call
Environment indicates an expected call of Environment.
func (*MockWebhookContextMockRecorder) ExecutionContext ¶
func (mr *MockWebhookContextMockRecorder) ExecutionContext() *gomock.Call
ExecutionContext indicates an expected call of ExecutionContext.
func (*MockWebhookContextMockRecorder) GetBotCode ¶
func (mr *MockWebhookContextMockRecorder) GetBotCode() *gomock.Call
GetBotCode indicates an expected call of GetBotCode.
func (*MockWebhookContextMockRecorder) GetBotSettings ¶
func (mr *MockWebhookContextMockRecorder) GetBotSettings() *gomock.Call
GetBotSettings indicates an expected call of GetBotSettings.
func (*MockWebhookContextMockRecorder) GetBotUser ¶
func (mr *MockWebhookContextMockRecorder) GetBotUser() *gomock.Call
GetBotUser indicates an expected call of GetBotUser.
func (*MockWebhookContextMockRecorder) GetBotUserForUpdate ¶
func (mr *MockWebhookContextMockRecorder) GetBotUserForUpdate(ctx, tx any) *gomock.Call
GetBotUserForUpdate indicates an expected call of GetBotUserForUpdate.
func (*MockWebhookContextMockRecorder) GetBotUserID ¶
func (mr *MockWebhookContextMockRecorder) GetBotUserID() *gomock.Call
GetBotUserID indicates an expected call of GetBotUserID.
func (*MockWebhookContextMockRecorder) GetTranslator ¶ added in v0.61.0
func (mr *MockWebhookContextMockRecorder) GetTranslator(locale any) *gomock.Call
GetTranslator indicates an expected call of GetTranslator.
func (*MockWebhookContextMockRecorder) Input ¶
func (mr *MockWebhookContextMockRecorder) Input() *gomock.Call
Input indicates an expected call of Input.
func (*MockWebhookContextMockRecorder) IsInGroup ¶
func (mr *MockWebhookContextMockRecorder) IsInGroup() *gomock.Call
IsInGroup indicates an expected call of IsInGroup.
func (*MockWebhookContextMockRecorder) IsNewerThen ¶
func (mr *MockWebhookContextMockRecorder) IsNewerThen(chatEntity any) *gomock.Call
IsNewerThen indicates an expected call of IsNewerThen.
func (*MockWebhookContextMockRecorder) Locale ¶
func (mr *MockWebhookContextMockRecorder) Locale() *gomock.Call
Locale indicates an expected call of Locale.
func (*MockWebhookContextMockRecorder) MustBotChatID ¶
func (mr *MockWebhookContextMockRecorder) MustBotChatID() *gomock.Call
MustBotChatID indicates an expected call of MustBotChatID.
func (*MockWebhookContextMockRecorder) NewEditMessage ¶
func (mr *MockWebhookContextMockRecorder) NewEditMessage(text, format any) *gomock.Call
NewEditMessage indicates an expected call of NewEditMessage.
func (*MockWebhookContextMockRecorder) NewMessage ¶
func (mr *MockWebhookContextMockRecorder) NewMessage(text any) *gomock.Call
NewMessage indicates an expected call of NewMessage.
func (*MockWebhookContextMockRecorder) NewMessageByCode ¶
func (mr *MockWebhookContextMockRecorder) NewMessageByCode(messageCode any, a ...any) *gomock.Call
NewMessageByCode indicates an expected call of NewMessageByCode.
func (*MockWebhookContextMockRecorder) RecordsFieldsSetter ¶
func (mr *MockWebhookContextMockRecorder) RecordsFieldsSetter() *gomock.Call
RecordsFieldsSetter indicates an expected call of RecordsFieldsSetter.
func (*MockWebhookContextMockRecorder) Request ¶
func (mr *MockWebhookContextMockRecorder) Request() *gomock.Call
Request indicates an expected call of Request.
func (*MockWebhookContextMockRecorder) Responder ¶
func (mr *MockWebhookContextMockRecorder) Responder() *gomock.Call
Responder indicates an expected call of Responder.
func (*MockWebhookContextMockRecorder) SaveBotChat ¶
func (mr *MockWebhookContextMockRecorder) SaveBotChat() *gomock.Call
SaveBotChat indicates an expected call of SaveBotChat.
func (*MockWebhookContextMockRecorder) SetContext ¶
func (mr *MockWebhookContextMockRecorder) SetContext(c any) *gomock.Call
SetContext indicates an expected call of SetContext.
func (*MockWebhookContextMockRecorder) SetLocale ¶
func (mr *MockWebhookContextMockRecorder) SetLocale(code5 any) *gomock.Call
SetLocale indicates an expected call of SetLocale.
func (*MockWebhookContextMockRecorder) SetUser ¶ added in v0.71.0
func (mr *MockWebhookContextMockRecorder) SetUser(id, data any) *gomock.Call
SetUser indicates an expected call of SetUser.
func (*MockWebhookContextMockRecorder) Translate ¶
func (mr *MockWebhookContextMockRecorder) Translate(key any, args ...any) *gomock.Call
Translate indicates an expected call of Translate.
func (*MockWebhookContextMockRecorder) TranslateNoWarning ¶
func (mr *MockWebhookContextMockRecorder) TranslateNoWarning(key any, args ...any) *gomock.Call
TranslateNoWarning indicates an expected call of TranslateNoWarning.
func (*MockWebhookContextMockRecorder) TranslateWithMap ¶
func (mr *MockWebhookContextMockRecorder) TranslateWithMap(key, args any) *gomock.Call
TranslateWithMap indicates an expected call of TranslateWithMap.
func (*MockWebhookContextMockRecorder) UpdateLastProcessed ¶
func (mr *MockWebhookContextMockRecorder) UpdateLastProcessed(chatEntity any) *gomock.Call
UpdateLastProcessed indicates an expected call of UpdateLastProcessed.
type MockWebhookHandler ¶ added in v0.71.38
type MockWebhookHandler struct {
// contains filtered or unexported fields
}
MockWebhookHandler is a mock of WebhookHandler interface.
func NewMockWebhookHandler ¶ added in v0.71.38
func NewMockWebhookHandler(ctrl *gomock.Controller) *MockWebhookHandler
NewMockWebhookHandler creates a new mock instance.
func (*MockWebhookHandler) CreateWebhookContext ¶ added in v0.71.38
func (m *MockWebhookHandler) CreateWebhookContext(args botsfw.CreateWebhookContextArgs) (botsfw.WebhookContext, error)
CreateWebhookContext mocks base method.
func (*MockWebhookHandler) EXPECT ¶ added in v0.71.38
func (m *MockWebhookHandler) EXPECT() *MockWebhookHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWebhookHandler) GetBotContextAndInputs ¶ added in v0.71.38
func (m *MockWebhookHandler) GetBotContextAndInputs(c context.Context, r *http.Request) (*botsfw.BotContext, []botinput.EntryInputs, error)
GetBotContextAndInputs mocks base method.
func (*MockWebhookHandler) GetResponder ¶ added in v0.71.38
func (m *MockWebhookHandler) GetResponder(w http.ResponseWriter, whc botsfw.WebhookContext) botsfw.WebhookResponder
GetResponder mocks base method.
func (*MockWebhookHandler) HandleUnmatched ¶ added in v0.71.38
func (m *MockWebhookHandler) HandleUnmatched(whc botsfw.WebhookContext) botmsg.MessageFromBot
HandleUnmatched mocks base method.
func (*MockWebhookHandler) HandleWebhookRequest ¶ added in v0.71.38
func (m *MockWebhookHandler) HandleWebhookRequest(w http.ResponseWriter, r *http.Request)
HandleWebhookRequest mocks base method.
func (*MockWebhookHandler) RegisterHttpHandlers ¶ added in v0.71.38
func (m *MockWebhookHandler) RegisterHttpHandlers(driver botsfw.WebhookDriver, botHost botsfw.BotHost, router botsfw.HttpRouter, pathPrefix string)
RegisterHttpHandlers mocks base method.
type MockWebhookHandlerMockRecorder ¶ added in v0.71.38
type MockWebhookHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockWebhookHandlerMockRecorder is the mock recorder for MockWebhookHandler.
func (*MockWebhookHandlerMockRecorder) CreateWebhookContext ¶ added in v0.71.38
func (mr *MockWebhookHandlerMockRecorder) CreateWebhookContext(args any) *gomock.Call
CreateWebhookContext indicates an expected call of CreateWebhookContext.
func (*MockWebhookHandlerMockRecorder) GetBotContextAndInputs ¶ added in v0.71.38
func (mr *MockWebhookHandlerMockRecorder) GetBotContextAndInputs(c, r any) *gomock.Call
GetBotContextAndInputs indicates an expected call of GetBotContextAndInputs.
func (*MockWebhookHandlerMockRecorder) GetResponder ¶ added in v0.71.38
func (mr *MockWebhookHandlerMockRecorder) GetResponder(w, whc any) *gomock.Call
GetResponder indicates an expected call of GetResponder.
func (*MockWebhookHandlerMockRecorder) HandleUnmatched ¶ added in v0.71.38
func (mr *MockWebhookHandlerMockRecorder) HandleUnmatched(whc any) *gomock.Call
HandleUnmatched indicates an expected call of HandleUnmatched.
func (*MockWebhookHandlerMockRecorder) HandleWebhookRequest ¶ added in v0.71.38
func (mr *MockWebhookHandlerMockRecorder) HandleWebhookRequest(w, r any) *gomock.Call
HandleWebhookRequest indicates an expected call of HandleWebhookRequest.
func (*MockWebhookHandlerMockRecorder) RegisterHttpHandlers ¶ added in v0.71.38
func (mr *MockWebhookHandlerMockRecorder) RegisterHttpHandlers(driver, botHost, router, pathPrefix any) *gomock.Call
RegisterHttpHandlers indicates an expected call of RegisterHttpHandlers.
type MockWebhookI18n ¶ added in v0.71.36
type MockWebhookI18n struct {
// contains filtered or unexported fields
}
MockWebhookI18n is a mock of WebhookI18n interface.
func NewMockWebhookI18n ¶ added in v0.71.36
func NewMockWebhookI18n(ctrl *gomock.Controller) *MockWebhookI18n
NewMockWebhookI18n creates a new mock instance.
func (*MockWebhookI18n) CommandText ¶ added in v0.71.36
func (m *MockWebhookI18n) CommandText(title, icon string) string
CommandText mocks base method.
func (*MockWebhookI18n) EXPECT ¶ added in v0.71.36
func (m *MockWebhookI18n) EXPECT() *MockWebhookI18nMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWebhookI18n) GetTranslator ¶ added in v0.71.36
func (m *MockWebhookI18n) GetTranslator(locale string) i18n.SingleLocaleTranslator
GetTranslator mocks base method.
func (*MockWebhookI18n) Locale ¶ added in v0.71.36
func (m *MockWebhookI18n) Locale() i18n.Locale
Locale mocks base method.
func (*MockWebhookI18n) SetLocale ¶ added in v0.71.36
func (m *MockWebhookI18n) SetLocale(code5 string) error
SetLocale mocks base method.
func (*MockWebhookI18n) Translate ¶ added in v0.71.36
func (m *MockWebhookI18n) Translate(key string, args ...any) string
Translate mocks base method.
func (*MockWebhookI18n) TranslateNoWarning ¶ added in v0.71.36
func (m *MockWebhookI18n) TranslateNoWarning(key string, args ...any) string
TranslateNoWarning mocks base method.
func (*MockWebhookI18n) TranslateWithMap ¶ added in v0.71.36
func (m *MockWebhookI18n) TranslateWithMap(key string, args map[string]string) string
TranslateWithMap mocks base method.
type MockWebhookI18nMockRecorder ¶ added in v0.71.36
type MockWebhookI18nMockRecorder struct {
// contains filtered or unexported fields
}
MockWebhookI18nMockRecorder is the mock recorder for MockWebhookI18n.
func (*MockWebhookI18nMockRecorder) CommandText ¶ added in v0.71.36
func (mr *MockWebhookI18nMockRecorder) CommandText(title, icon any) *gomock.Call
CommandText indicates an expected call of CommandText.
func (*MockWebhookI18nMockRecorder) GetTranslator ¶ added in v0.71.36
func (mr *MockWebhookI18nMockRecorder) GetTranslator(locale any) *gomock.Call
GetTranslator indicates an expected call of GetTranslator.
func (*MockWebhookI18nMockRecorder) Locale ¶ added in v0.71.36
func (mr *MockWebhookI18nMockRecorder) Locale() *gomock.Call
Locale indicates an expected call of Locale.
func (*MockWebhookI18nMockRecorder) SetLocale ¶ added in v0.71.36
func (mr *MockWebhookI18nMockRecorder) SetLocale(code5 any) *gomock.Call
SetLocale indicates an expected call of SetLocale.
func (*MockWebhookI18nMockRecorder) Translate ¶ added in v0.71.36
func (mr *MockWebhookI18nMockRecorder) Translate(key any, args ...any) *gomock.Call
Translate indicates an expected call of Translate.
func (*MockWebhookI18nMockRecorder) TranslateNoWarning ¶ added in v0.71.36
func (mr *MockWebhookI18nMockRecorder) TranslateNoWarning(key any, args ...any) *gomock.Call
TranslateNoWarning indicates an expected call of TranslateNoWarning.
func (*MockWebhookI18nMockRecorder) TranslateWithMap ¶ added in v0.71.36
func (mr *MockWebhookI18nMockRecorder) TranslateWithMap(key, args any) *gomock.Call
TranslateWithMap indicates an expected call of TranslateWithMap.
type MockWebhookInputContext ¶ added in v0.71.36
type MockWebhookInputContext struct {
// contains filtered or unexported fields
}
MockWebhookInputContext is a mock of WebhookInputContext interface.
func NewMockWebhookInputContext ¶ added in v0.71.36
func NewMockWebhookInputContext(ctrl *gomock.Controller) *MockWebhookInputContext
NewMockWebhookInputContext creates a new mock instance.
func (*MockWebhookInputContext) EXPECT ¶ added in v0.71.36
func (m *MockWebhookInputContext) EXPECT() *MockWebhookInputContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWebhookInputContext) GetBotUserID ¶ added in v0.71.36
func (m *MockWebhookInputContext) GetBotUserID() string
GetBotUserID mocks base method.
func (*MockWebhookInputContext) Input ¶ added in v0.71.36
func (m *MockWebhookInputContext) Input() botinput.InputMessage
Input mocks base method.
func (*MockWebhookInputContext) IsInGroup ¶ added in v0.71.36
func (m *MockWebhookInputContext) IsInGroup() (bool, error)
IsInGroup mocks base method.
func (*MockWebhookInputContext) MustBotChatID ¶ added in v0.71.36
func (m *MockWebhookInputContext) MustBotChatID() string
MustBotChatID mocks base method.
type MockWebhookInputContextMockRecorder ¶ added in v0.71.36
type MockWebhookInputContextMockRecorder struct {
// contains filtered or unexported fields
}
MockWebhookInputContextMockRecorder is the mock recorder for MockWebhookInputContext.
func (*MockWebhookInputContextMockRecorder) GetBotUserID ¶ added in v0.71.36
func (mr *MockWebhookInputContextMockRecorder) GetBotUserID() *gomock.Call
GetBotUserID indicates an expected call of GetBotUserID.
func (*MockWebhookInputContextMockRecorder) Input ¶ added in v0.71.36
func (mr *MockWebhookInputContextMockRecorder) Input() *gomock.Call
Input indicates an expected call of Input.
func (*MockWebhookInputContextMockRecorder) IsInGroup ¶ added in v0.71.36
func (mr *MockWebhookInputContextMockRecorder) IsInGroup() *gomock.Call
IsInGroup indicates an expected call of IsInGroup.
func (*MockWebhookInputContextMockRecorder) MustBotChatID ¶ added in v0.71.36
func (mr *MockWebhookInputContextMockRecorder) MustBotChatID() *gomock.Call
MustBotChatID indicates an expected call of MustBotChatID.
type MockWebhookMessaging ¶ added in v0.71.36
type MockWebhookMessaging struct {
// contains filtered or unexported fields
}
MockWebhookMessaging is a mock of WebhookMessaging interface.
func NewMockWebhookMessaging ¶ added in v0.71.36
func NewMockWebhookMessaging(ctrl *gomock.Controller) *MockWebhookMessaging
NewMockWebhookMessaging creates a new mock instance.
func (*MockWebhookMessaging) EXPECT ¶ added in v0.71.36
func (m *MockWebhookMessaging) EXPECT() *MockWebhookMessagingMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWebhookMessaging) NewEditMessage ¶ added in v0.71.36
func (m *MockWebhookMessaging) NewEditMessage(text string, format botmsg.Format) (botmsg.MessageFromBot, error)
NewEditMessage mocks base method.
func (*MockWebhookMessaging) NewMessage ¶ added in v0.71.36
func (m *MockWebhookMessaging) NewMessage(text string) botmsg.MessageFromBot
NewMessage mocks base method.
func (*MockWebhookMessaging) NewMessageByCode ¶ added in v0.71.36
func (m *MockWebhookMessaging) NewMessageByCode(messageCode string, a ...any) botmsg.MessageFromBot
NewMessageByCode mocks base method.
func (*MockWebhookMessaging) Responder ¶ added in v0.71.36
func (m *MockWebhookMessaging) Responder() botsfw.WebhookResponder
Responder mocks base method.
type MockWebhookMessagingMockRecorder ¶ added in v0.71.36
type MockWebhookMessagingMockRecorder struct {
// contains filtered or unexported fields
}
MockWebhookMessagingMockRecorder is the mock recorder for MockWebhookMessaging.
func (*MockWebhookMessagingMockRecorder) NewEditMessage ¶ added in v0.71.36
func (mr *MockWebhookMessagingMockRecorder) NewEditMessage(text, format any) *gomock.Call
NewEditMessage indicates an expected call of NewEditMessage.
func (*MockWebhookMessagingMockRecorder) NewMessage ¶ added in v0.71.36
func (mr *MockWebhookMessagingMockRecorder) NewMessage(text any) *gomock.Call
NewMessage indicates an expected call of NewMessage.
func (*MockWebhookMessagingMockRecorder) NewMessageByCode ¶ added in v0.71.36
func (mr *MockWebhookMessagingMockRecorder) NewMessageByCode(messageCode any, a ...any) *gomock.Call
NewMessageByCode indicates an expected call of NewMessageByCode.
func (*MockWebhookMessagingMockRecorder) Responder ¶ added in v0.71.36
func (mr *MockWebhookMessagingMockRecorder) Responder() *gomock.Call
Responder indicates an expected call of Responder.
type MockWebhookRequestContext ¶ added in v0.71.36
type MockWebhookRequestContext struct {
// contains filtered or unexported fields
}
MockWebhookRequestContext is a mock of WebhookRequestContext interface.
func NewMockWebhookRequestContext ¶ added in v0.71.36
func NewMockWebhookRequestContext(ctrl *gomock.Controller) *MockWebhookRequestContext
NewMockWebhookRequestContext creates a new mock instance.
func (*MockWebhookRequestContext) AppContext ¶ added in v0.71.36
func (m *MockWebhookRequestContext) AppContext() botsfw.AppContext
AppContext mocks base method.
func (*MockWebhookRequestContext) BotContext ¶ added in v0.71.36
func (m *MockWebhookRequestContext) BotContext() botsfw.BotContext
BotContext mocks base method.
func (*MockWebhookRequestContext) BotPlatform ¶ added in v0.71.36
func (m *MockWebhookRequestContext) BotPlatform() botsfw.BotPlatform
BotPlatform mocks base method.
func (*MockWebhookRequestContext) Context ¶ added in v0.71.36
func (m *MockWebhookRequestContext) Context() context.Context
Context mocks base method.
func (*MockWebhookRequestContext) DB ¶ added in v0.71.36
func (m *MockWebhookRequestContext) DB() dal.DB
DB mocks base method.
func (*MockWebhookRequestContext) EXPECT ¶ added in v0.71.36
func (m *MockWebhookRequestContext) EXPECT() *MockWebhookRequestContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWebhookRequestContext) Environment ¶ added in v0.71.36
func (m *MockWebhookRequestContext) Environment() string
Environment mocks base method.
func (*MockWebhookRequestContext) ExecutionContext ¶ added in v0.71.36
func (m *MockWebhookRequestContext) ExecutionContext() botsfw.ExecutionContext
ExecutionContext mocks base method.
func (*MockWebhookRequestContext) GetBotCode ¶ added in v0.71.36
func (m *MockWebhookRequestContext) GetBotCode() string
GetBotCode mocks base method.
func (*MockWebhookRequestContext) GetBotSettings ¶ added in v0.71.36
func (m *MockWebhookRequestContext) GetBotSettings() *botsfw.BotSettings
GetBotSettings mocks base method.
func (*MockWebhookRequestContext) Request ¶ added in v0.71.36
func (m *MockWebhookRequestContext) Request() *http.Request
Request mocks base method.
func (*MockWebhookRequestContext) SetContext ¶ added in v0.71.36
func (m *MockWebhookRequestContext) SetContext(c context.Context)
SetContext mocks base method.
type MockWebhookRequestContextMockRecorder ¶ added in v0.71.36
type MockWebhookRequestContextMockRecorder struct {
// contains filtered or unexported fields
}
MockWebhookRequestContextMockRecorder is the mock recorder for MockWebhookRequestContext.
func (*MockWebhookRequestContextMockRecorder) AppContext ¶ added in v0.71.36
func (mr *MockWebhookRequestContextMockRecorder) AppContext() *gomock.Call
AppContext indicates an expected call of AppContext.
func (*MockWebhookRequestContextMockRecorder) BotContext ¶ added in v0.71.36
func (mr *MockWebhookRequestContextMockRecorder) BotContext() *gomock.Call
BotContext indicates an expected call of BotContext.
func (*MockWebhookRequestContextMockRecorder) BotPlatform ¶ added in v0.71.36
func (mr *MockWebhookRequestContextMockRecorder) BotPlatform() *gomock.Call
BotPlatform indicates an expected call of BotPlatform.
func (*MockWebhookRequestContextMockRecorder) Context ¶ added in v0.71.36
func (mr *MockWebhookRequestContextMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockWebhookRequestContextMockRecorder) DB ¶ added in v0.71.36
func (mr *MockWebhookRequestContextMockRecorder) DB() *gomock.Call
DB indicates an expected call of DB.
func (*MockWebhookRequestContextMockRecorder) Environment ¶ added in v0.71.36
func (mr *MockWebhookRequestContextMockRecorder) Environment() *gomock.Call
Environment indicates an expected call of Environment.
func (*MockWebhookRequestContextMockRecorder) ExecutionContext ¶ added in v0.71.36
func (mr *MockWebhookRequestContextMockRecorder) ExecutionContext() *gomock.Call
ExecutionContext indicates an expected call of ExecutionContext.
func (*MockWebhookRequestContextMockRecorder) GetBotCode ¶ added in v0.71.36
func (mr *MockWebhookRequestContextMockRecorder) GetBotCode() *gomock.Call
GetBotCode indicates an expected call of GetBotCode.
func (*MockWebhookRequestContextMockRecorder) GetBotSettings ¶ added in v0.71.36
func (mr *MockWebhookRequestContextMockRecorder) GetBotSettings() *gomock.Call
GetBotSettings indicates an expected call of GetBotSettings.
func (*MockWebhookRequestContextMockRecorder) Request ¶ added in v0.71.36
func (mr *MockWebhookRequestContextMockRecorder) Request() *gomock.Call
Request indicates an expected call of Request.
func (*MockWebhookRequestContextMockRecorder) SetContext ¶ added in v0.71.36
func (mr *MockWebhookRequestContextMockRecorder) SetContext(c any) *gomock.Call
SetContext indicates an expected call of SetContext.
type MockWebhookResponder ¶
type MockWebhookResponder struct {
// contains filtered or unexported fields
}
MockWebhookResponder is a mock of WebhookResponder interface.
func NewMockWebhookResponder ¶
func NewMockWebhookResponder(ctrl *gomock.Controller) *MockWebhookResponder
NewMockWebhookResponder creates a new mock instance.
func (*MockWebhookResponder) DeleteMessage ¶
func (m *MockWebhookResponder) DeleteMessage(c context.Context, messageID string) error
DeleteMessage mocks base method.
func (*MockWebhookResponder) EXPECT ¶
func (m *MockWebhookResponder) EXPECT() *MockWebhookResponderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWebhookResponder) SendMessage ¶
func (m_2 *MockWebhookResponder) SendMessage(c context.Context, m botmsg.MessageFromBot, channel botmsg.BotAPISendMessageChannel) (botsfw.OnMessageSentResponse, error)
SendMessage mocks base method.
type MockWebhookResponderMockRecorder ¶
type MockWebhookResponderMockRecorder struct {
// contains filtered or unexported fields
}
MockWebhookResponderMockRecorder is the mock recorder for MockWebhookResponder.
func (*MockWebhookResponderMockRecorder) DeleteMessage ¶
func (mr *MockWebhookResponderMockRecorder) DeleteMessage(c, messageID any) *gomock.Call
DeleteMessage indicates an expected call of DeleteMessage.
func (*MockWebhookResponderMockRecorder) SendMessage ¶
func (mr *MockWebhookResponderMockRecorder) SendMessage(c, m, channel any) *gomock.Call
SendMessage indicates an expected call of SendMessage.
type MockWebhookTelemetry ¶ added in v0.71.36
type MockWebhookTelemetry struct {
// contains filtered or unexported fields
}
MockWebhookTelemetry is a mock of WebhookTelemetry interface.
func NewMockWebhookTelemetry ¶ added in v0.71.36
func NewMockWebhookTelemetry(ctrl *gomock.Controller) *MockWebhookTelemetry
NewMockWebhookTelemetry creates a new mock instance.
func (*MockWebhookTelemetry) Analytics ¶ added in v0.71.36
func (m *MockWebhookTelemetry) Analytics() botsfw.WebhookAnalytics
Analytics mocks base method.
func (*MockWebhookTelemetry) EXPECT ¶ added in v0.71.36
func (m *MockWebhookTelemetry) EXPECT() *MockWebhookTelemetryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockWebhookTelemetryMockRecorder ¶ added in v0.71.36
type MockWebhookTelemetryMockRecorder struct {
// contains filtered or unexported fields
}
MockWebhookTelemetryMockRecorder is the mock recorder for MockWebhookTelemetry.
func (*MockWebhookTelemetryMockRecorder) Analytics ¶ added in v0.71.36
func (mr *MockWebhookTelemetryMockRecorder) Analytics() *gomock.Call
Analytics indicates an expected call of Analytics.
type MockWebhookUserData ¶ added in v0.71.36
type MockWebhookUserData struct {
// contains filtered or unexported fields
}
MockWebhookUserData is a mock of WebhookUserData interface.
func NewMockWebhookUserData ¶ added in v0.71.36
func NewMockWebhookUserData(ctrl *gomock.Controller) *MockWebhookUserData
NewMockWebhookUserData creates a new mock instance.
func (*MockWebhookUserData) AppUserData ¶ added in v0.71.36
func (m *MockWebhookUserData) AppUserData() (botsfwmodels.AppUserData, error)
AppUserData mocks base method.
func (*MockWebhookUserData) AppUserID ¶ added in v0.71.36
func (m *MockWebhookUserData) AppUserID() string
AppUserID mocks base method.
func (*MockWebhookUserData) ChatData ¶ added in v0.71.36
func (m *MockWebhookUserData) ChatData() botsfwmodels.BotChatData
ChatData mocks base method.
func (*MockWebhookUserData) EXPECT ¶ added in v0.71.36
func (m *MockWebhookUserData) EXPECT() *MockWebhookUserDataMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWebhookUserData) GetBotUser ¶ added in v0.71.36
func (m *MockWebhookUserData) GetBotUser() (botsdal.BotUser, error)
GetBotUser mocks base method.
func (*MockWebhookUserData) GetBotUserForUpdate ¶ added in v0.71.36
func (m *MockWebhookUserData) GetBotUserForUpdate(ctx context.Context, tx dal.ReadwriteTransaction) (botsdal.BotUser, error)
GetBotUserForUpdate mocks base method.
func (*MockWebhookUserData) IsNewerThen ¶ added in v0.71.36
func (m *MockWebhookUserData) IsNewerThen(chatEntity botsfwmodels.BotChatData) bool
IsNewerThen mocks base method.
func (*MockWebhookUserData) RecordsFieldsSetter ¶ added in v0.71.36
func (m *MockWebhookUserData) RecordsFieldsSetter() botsfw.BotRecordsFieldsSetter
RecordsFieldsSetter mocks base method.
func (*MockWebhookUserData) SaveBotChat ¶ added in v0.71.36
func (m *MockWebhookUserData) SaveBotChat() error
SaveBotChat mocks base method.
func (*MockWebhookUserData) SetUser ¶ added in v0.71.36
func (m *MockWebhookUserData) SetUser(id string, data botsfwmodels.AppUserData)
SetUser mocks base method.
func (*MockWebhookUserData) UpdateLastProcessed ¶ added in v0.71.36
func (m *MockWebhookUserData) UpdateLastProcessed(chatEntity botsfwmodels.BotChatData) error
UpdateLastProcessed mocks base method.
type MockWebhookUserDataMockRecorder ¶ added in v0.71.36
type MockWebhookUserDataMockRecorder struct {
// contains filtered or unexported fields
}
MockWebhookUserDataMockRecorder is the mock recorder for MockWebhookUserData.
func (*MockWebhookUserDataMockRecorder) AppUserData ¶ added in v0.71.36
func (mr *MockWebhookUserDataMockRecorder) AppUserData() *gomock.Call
AppUserData indicates an expected call of AppUserData.
func (*MockWebhookUserDataMockRecorder) AppUserID ¶ added in v0.71.36
func (mr *MockWebhookUserDataMockRecorder) AppUserID() *gomock.Call
AppUserID indicates an expected call of AppUserID.
func (*MockWebhookUserDataMockRecorder) ChatData ¶ added in v0.71.36
func (mr *MockWebhookUserDataMockRecorder) ChatData() *gomock.Call
ChatData indicates an expected call of ChatData.
func (*MockWebhookUserDataMockRecorder) GetBotUser ¶ added in v0.71.36
func (mr *MockWebhookUserDataMockRecorder) GetBotUser() *gomock.Call
GetBotUser indicates an expected call of GetBotUser.
func (*MockWebhookUserDataMockRecorder) GetBotUserForUpdate ¶ added in v0.71.36
func (mr *MockWebhookUserDataMockRecorder) GetBotUserForUpdate(ctx, tx any) *gomock.Call
GetBotUserForUpdate indicates an expected call of GetBotUserForUpdate.
func (*MockWebhookUserDataMockRecorder) IsNewerThen ¶ added in v0.71.36
func (mr *MockWebhookUserDataMockRecorder) IsNewerThen(chatEntity any) *gomock.Call
IsNewerThen indicates an expected call of IsNewerThen.
func (*MockWebhookUserDataMockRecorder) RecordsFieldsSetter ¶ added in v0.71.36
func (mr *MockWebhookUserDataMockRecorder) RecordsFieldsSetter() *gomock.Call
RecordsFieldsSetter indicates an expected call of RecordsFieldsSetter.
func (*MockWebhookUserDataMockRecorder) SaveBotChat ¶ added in v0.71.36
func (mr *MockWebhookUserDataMockRecorder) SaveBotChat() *gomock.Call
SaveBotChat indicates an expected call of SaveBotChat.
func (*MockWebhookUserDataMockRecorder) SetUser ¶ added in v0.71.36
func (mr *MockWebhookUserDataMockRecorder) SetUser(id, data any) *gomock.Call
SetUser indicates an expected call of SetUser.
func (*MockWebhookUserDataMockRecorder) UpdateLastProcessed ¶ added in v0.71.36
func (mr *MockWebhookUserDataMockRecorder) UpdateLastProcessed(chatEntity any) *gomock.Call
UpdateLastProcessed indicates an expected call of UpdateLastProcessed.