handler

package
v0.0.0-...-ae6f334 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallbackHandler

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

func NewCallbackHandler

func NewCallbackHandler(userRepo repo.UserRepo, transactionRepo repo.TransactionRepo, messageContextRepo repo.MessageContextRepo, transactionTypeRepo repo.TransactionTypeRepo, categoryRepo repo.CategoryRepo) CallbackHandler

func (CallbackHandler) FromCancel

func (handler CallbackHandler) FromCancel(ctx context.Context, bot *tgbotapi.BotAPI, callbackQuery *tgbotapi.CallbackQuery)

func (CallbackHandler) FromCategory

func (handler CallbackHandler) FromCategory(ctx context.Context, bot *tgbotapi.BotAPI, callbackQuery *tgbotapi.CallbackQuery)

func (CallbackHandler) FromPagination

func (handler CallbackHandler) FromPagination(ctx context.Context, bot *tgbotapi.BotAPI, callbackQuery *tgbotapi.CallbackQuery)

func (CallbackHandler) FromUndo

func (handler CallbackHandler) FromUndo(ctx context.Context, bot *tgbotapi.BotAPI, callbackQuery *tgbotapi.CallbackQuery)

type CommandHandler

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

func NewCommandHandler

func NewCommandHandler(userRepo repo.UserRepo, transactionRepo repo.TransactionRepo, messageContextRepo repo.MessageContextRepo, transactionTypeRepo repo.TransactionTypeRepo, categoryRepo repo.CategoryRepo, statRepo repo.StatRepo) CommandHandler

func (CommandHandler) Export

func (handler CommandHandler) Export(ctx context.Context, bot *tgbotapi.BotAPI, update tgbotapi.Update)

func (CommandHandler) Help

func (handler CommandHandler) Help(ctx context.Context, bot *tgbotapi.BotAPI, update tgbotapi.Update)

func (CommandHandler) List

func (handler CommandHandler) List(ctx context.Context, bot *tgbotapi.BotAPI, update tgbotapi.Update)

func (CommandHandler) Start

func (handler CommandHandler) Start(ctx context.Context, bot *tgbotapi.BotAPI, update tgbotapi.Update)

func (CommandHandler) StartTransaction

func (handler CommandHandler) StartTransaction(ctx context.Context, bot *tgbotapi.BotAPI, update tgbotapi.Update)

func (CommandHandler) Stats

func (handler CommandHandler) Stats(ctx context.Context, bot *tgbotapi.BotAPI, update tgbotapi.Update)

func (CommandHandler) Undo

func (handler CommandHandler) Undo(ctx context.Context, bot *tgbotapi.BotAPI, update tgbotapi.Update)

Jump to

Keyboard shortcuts

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