handlers

package
v0.0.0-...-cd6a17b Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugHandler

func DebugHandler(format string, args ...any)

func ErrorsHandler

func ErrorsHandler(err error)

Types

type AddWalletHandler

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

func NewAddWalletHandler

func NewAddWalletHandler(
	userActionService *services.UserActionService,
	userWalletService *services.UserWalletService,
	blockchainsService *blockchains.Service,
	checkWorkersInterval int,
) *AddWalletHandler

func (*AddWalletHandler) Handler

func (h *AddWalletHandler) Handler(ctx context.Context, user *middlewares.User, startKeyboard *botKeyboards.StartKeyboard, b *bot.Bot, update *models.Update)

type DefaultHandler

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

func NewDefaultHandler

func NewDefaultHandler(languages *languages.Languages) *DefaultHandler

func (*DefaultHandler) Handler

func (h *DefaultHandler) Handler(ctx context.Context, user *middlewares.User, startKeyboard *botKeyboards.StartKeyboard, b *bot.Bot, update *models.Update)

type EnterWalletHandler

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

func NewEnterWalletHandler

func NewEnterWalletHandler(userActionService *services.UserActionService) *EnterWalletHandler

func (*EnterWalletHandler) Back

func (h *EnterWalletHandler) Back(
	ctx context.Context,
	user *middlewares.User,
	startKeyboard *botKeyboards.StartKeyboard,
	b *bot.Bot,
	update *models.Update,
)

func (*EnterWalletHandler) BackToBlockchainSelect

func (h *EnterWalletHandler) BackToBlockchainSelect(
	ctx context.Context,
	user *middlewares.User,
	addWalletKeyboard *botKeyboards.BlockchainsKeyboard,
	b *bot.Bot,
	update *models.Update,
)

func (*EnterWalletHandler) Handler

func (h *EnterWalletHandler) Handler(
	ctx context.Context,
	user *middlewares.User,
	blockchain blockchains.BlockchainInfo,
	b *bot.Bot,
	update *models.Update,
)

type FAQHandler

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

func NewFAQHandler

func NewFAQHandler(poolURL string, checkWorkersInterval int, supportBotUsername string) *FAQHandler

func (*FAQHandler) Handler

func (h *FAQHandler) Handler(ctx context.Context, user *middlewares.User, b *bot.Bot, update *models.Update)

type PoolStatsHandler

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

func NewPoolStatsHandler

func NewPoolStatsHandler(blockchainsService *blockchains.Service) *PoolStatsHandler

func (*PoolStatsHandler) Back

func (h *PoolStatsHandler) Back(
	ctx context.Context,
	user *middlewares.User,
	startKeyboard *botKeyboards.StartKeyboard,
	b *bot.Bot,
	update *models.Update,
)

func (*PoolStatsHandler) OnBlockchainSelected

func (h *PoolStatsHandler) OnBlockchainSelected(
	ctx context.Context,
	user *middlewares.User,
	startKeyboard *botKeyboards.StartKeyboard,
	blockchain blockchains.BlockchainInfo,
	b *bot.Bot,
	update *models.Update,
)

type RemoveWalletHandler

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

func NewRemoveWalletHandler

func NewRemoveWalletHandler(userWalletService *services.UserWalletService, userActionService *services.UserActionService) *RemoveWalletHandler

func (*RemoveWalletHandler) Back

func (h *RemoveWalletHandler) Back(ctx context.Context, user *middlewares.User, startKeyboard *botKeyboards.StartKeyboard, b *bot.Bot, update *models.Update)

func (*RemoveWalletHandler) BackToBlockchainSelect

func (h *RemoveWalletHandler) BackToBlockchainSelect(ctx context.Context, user *middlewares.User, b *bot.Bot, update *models.Update)

func (*RemoveWalletHandler) OnBlockchainSelected

func (h *RemoveWalletHandler) OnBlockchainSelected(
	ctx context.Context,
	user *middlewares.User,
	blockchain blockchains.BlockchainInfo,
	b *bot.Bot,
	update *models.Update,
)

func (*RemoveWalletHandler) Remove

func (h *RemoveWalletHandler) Remove(
	ctx context.Context,
	user *middlewares.User,
	startKeyboard *botKeyboards.StartKeyboard,
	wallet services.UserWalletInfo,
	b *bot.Bot,
	update *models.Update,
)

type ReportBugHandler

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

func NewReportBugHandler

func NewReportBugHandler(
	feedbackService *services.FeedbackService,
	userActionService *services.UserActionService,
	supportBotUsername string,
) *ReportBugHandler

func (*ReportBugHandler) Back

func (h *ReportBugHandler) Back(ctx context.Context, user *middlewares.User, startKeyboard *botKeyboards.StartKeyboard, b *bot.Bot, update *models.Update)

func (*ReportBugHandler) Enter

func (h *ReportBugHandler) Enter(ctx context.Context, user *middlewares.User, b *bot.Bot, update *models.Update)

func (*ReportBugHandler) SendFeedback

func (h *ReportBugHandler) SendFeedback(ctx context.Context, user *middlewares.User, startKeyboard *botKeyboards.StartKeyboard, b *bot.Bot, update *models.Update)

Jump to

Keyboard shortcuts

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