mock_botsfw

package
v0.77.10 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2026 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

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

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

func (*MockBotPlatform) ID

func (m *MockBotPlatform) ID() string

ID mocks base method.

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

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

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) 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

ID indicates an expected call of ID.

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

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.

func (*MockWebhookAnalyticsMockRecorder) Enqueue added in v0.71.36

func (mr *MockWebhookAnalyticsMockRecorder) Enqueue(message any) *gomock.Call

Enqueue indicates an expected call of Enqueue.

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

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

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) DB

func (m *MockWebhookContext) DB() any

DB is a test-only compatibility seam for consumers migrating old mock expectations. It is intentionally absent from botsfw.WebhookContext and uses any so the core module remains independent of database packages.

func (*MockWebhookContext) EXPECT

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() (botsfwstore.PlatformUser, error)

GetBotUser 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

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

Responder mocks base method.

func (*MockWebhookContext) SaveBotChat

func (m *MockWebhookContext) SaveBotChat() error

SaveBotChat mocks base method.

func (*MockWebhookContext) SetBotUserAccessGranted added in v0.76.0

func (m *MockWebhookContext) SetBotUserAccessGranted(value bool) error

SetBotUserAccessGranted 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

Context indicates an expected call of Context.

func (*MockWebhookContextMockRecorder) DB

DB indicates an expected call of the test-only compatibility seam.

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) 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

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

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

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) SetBotUserAccessGranted added in v0.76.0

func (mr *MockWebhookContextMockRecorder) SetBotUserAccessGranted(value any) *gomock.Call

SetBotUserAccessGranted indicates an expected call of SetBotUserAccessGranted.

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

CreateWebhookContext mocks base method.

func (*MockWebhookHandler) EXPECT added in v0.71.38

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

GetResponder mocks base method.

func (*MockWebhookHandler) HandleUnmatched added in v0.71.38

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

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

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

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

Input indicates an expected call of Input.

func (*MockWebhookInputContextMockRecorder) IsInGroup added in v0.71.36

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

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

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

AppContext mocks base method.

func (*MockWebhookRequestContext) BotContext added in v0.71.36

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

Context mocks base method.

func (*MockWebhookRequestContext) EXPECT added in v0.71.36

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

AppContext indicates an expected call of AppContext.

func (*MockWebhookRequestContextMockRecorder) BotContext added in v0.71.36

BotContext indicates an expected call of BotContext.

func (*MockWebhookRequestContextMockRecorder) BotPlatform added in v0.71.36

BotPlatform indicates an expected call of BotPlatform.

func (*MockWebhookRequestContextMockRecorder) Context added in v0.71.36

Context indicates an expected call of Context.

func (*MockWebhookRequestContextMockRecorder) Environment added in v0.71.36

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

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

Request indicates an expected call of Request.

func (*MockWebhookRequestContextMockRecorder) SetContext added in v0.71.36

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

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

func (*MockWebhookResponder) SendMessage

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

Analytics mocks base method.

func (*MockWebhookTelemetry) EXPECT added in v0.71.36

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

ChatData mocks base method.

func (*MockWebhookUserData) EXPECT added in v0.71.36

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

func (*MockWebhookUserData) GetBotUser added in v0.71.36

GetBotUser 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) SetBotUserAccessGranted added in v0.76.0

func (m *MockWebhookUserData) SetBotUserAccessGranted(value bool) error

SetBotUserAccessGranted 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

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) 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) SetBotUserAccessGranted added in v0.76.0

func (mr *MockWebhookUserDataMockRecorder) SetBotUserAccessGranted(value any) *gomock.Call

SetBotUserAccessGranted indicates an expected call of SetBotUserAccessGranted.

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.

Jump to

Keyboard shortcuts

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