Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowedChatsMiddleware ¶
func AllowedChatsMiddleware(chatIDs map[int64]struct{}, log Logger) func(next tb.HandlerFunc) tb.HandlerFunc
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
func NewBot ¶
func NewBot(deps Dependencies) *Bot
type Dependencies ¶
type Dependencies struct {
AllowedChats []int64
YNAB YNABDependencies
StatisticMessageFormatter StatisticMessageFormatter
Logger Logger
}
type StatisticMessageFormatter ¶
type StatisticMessageFormatter func(cat budget.GeneralCategoryStatistic) (string, error)
func NewDefaultStatisticMessageFormatter ¶
func NewDefaultStatisticMessageFormatter() (StatisticMessageFormatter, error)
type YNABClient ¶
type YNABDependencies ¶
type YNABDependencies struct {
BudgetID string
CategoryID string
Client YNABClient
}
Click to show internal directories.
Click to hide internal directories.