handlers

package
v0.0.0-...-33dae29 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareConfContentForMessage

func PrepareConfContentForMessage(conf configfile.ConfigFile) string

Types

type ChartPoint

type ChartPoint struct {
	Serie     string
	Timestamp time.Time
	Value     decimal.Decimal
}

type Handlers

type Handlers struct {
	Logger         *log.Logger
	Conf           *configfile.ConfigFile
	TelegramClient *telegram.Client
	BinanceClient  *binance.Client
	Repository     *repository.Repository
	GlobalConf     globalconf.GlobalConfModifier
}

func (*Handlers) BackToMainMenu

func (p *Handlers) BackToMainMenu(c telebot.Context) error

func (*Handlers) BestJump

func (p *Handlers) BestJump(c telebot.Context) error

func (*Handlers) ChartMenu

func (p *Handlers) ChartMenu(c telebot.Context) error

func (*Handlers) CreatePaginatedHandlers

func (p *Handlers) CreatePaginatedHandlers(messagePaginated map[interface{}]string, defaultValue interface{}, selector *telebot.ReplyMarkup) []telebot.Btn

func (*Handlers) EditCoins

func (p *Handlers) EditCoins(c telebot.Context) error

func (*Handlers) EditJump

func (p *Handlers) EditJump(c telebot.Context) error

func (*Handlers) ExportDB

func (p *Handlers) ExportDB(c telebot.Context) error

func (*Handlers) GenerateChart

func (p *Handlers) GenerateChart(c telebot.Context) error

func (*Handlers) Help

func (p *Handlers) Help(c telebot.Context) error

func (*Handlers) InitHandlers

func (p *Handlers) InitHandlers(ctx context.Context)

func (*Handlers) InitMenu

func (p *Handlers) InitMenu(ctx context.Context)

func (*Handlers) LastTenJumps

func (p *Handlers) LastTenJumps(c telebot.Context) error

func (*Handlers) ListCoins

func (p *Handlers) ListCoins(c telebot.Context) error

func (*Handlers) NewChart

func (p *Handlers) NewChart(c telebot.Context) error

func (*Handlers) NextJump

func (p *Handlers) NextJump(c telebot.Context) error

func (*Handlers) Notification

func (p *Handlers) Notification(c telebot.Context) error

func (*Handlers) NotificationDebug

func (p *Handlers) NotificationDebug(ctx context.Context)

func (*Handlers) NotificationError

func (p *Handlers) NotificationError(ctx context.Context)

func (*Handlers) NotificationInfo

func (p *Handlers) NotificationInfo(ctx context.Context)

func (*Handlers) NotificationWarn

func (p *Handlers) NotificationWarn(ctx context.Context)

func (*Handlers) ReloadConfigFile

func (p *Handlers) ReloadConfigFile(c telebot.Context) error

func (*Handlers) ShowBalances

func (p *Handlers) ShowBalances(c telebot.Context) error

func (*Handlers) ShowConfigFile

func (p *Handlers) ShowConfigFile(c telebot.Context) error

func (*Handlers) ShowLiveConfig

func (p *Handlers) ShowLiveConfig(c telebot.Context) error

func (*Handlers) ValidateCoinEdit

func (p *Handlers) ValidateCoinEdit(c telebot.Context) error

func (*Handlers) ValidateJumpEdit

func (p *Handlers) ValidateJumpEdit(c telebot.Context) error

func (*Handlers) ValidateNewChart

func (p *Handlers) ValidateNewChart(c telebot.Context) error

Jump to

Keyboard shortcuts

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