Versions in this module Expand all Collapse all v0 v0.0.4 Oct 4, 2021 v0.0.3 Oct 4, 2021 Changes in this version + type CommandListener struct + Credentials CredentialStore + Executors []Executor + func (l *CommandListener) AuthorizedUserIDs() map[telegram.ID]bool + func (l *CommandListener) Update_bank_statement(ctx context.Context, tgclient telegram.Client, cmd *telegram.Command) error + type Context struct + Reload time.Duration + type Credential struct + Password string + Username string + type CredentialStore map[telegram.ID]Credential + type Executor interface + Name func() string + Run func(ctx context.Context, sync *Sync) (int, error) + type Extension []Executor + func (e Extension) Apply(ctx context.Context, app app.Interface, buttons *core.ControlButtons) (interface{}, error) + func (e Extension) Buttons() []telegram.Button + func (e Extension) ID() string + type SQLStorage gorm.DB + func (s *SQLStorage) GetLatestTime(ctx context.Context, entity interface{}, tenant interface{}) (time.Time, error) + func (s *SQLStorage) Init(ctx context.Context) error + func (s *SQLStorage) Insert(ctx context.Context, batch interface{}) error + func (s *SQLStorage) Unmask() *gorm.DB + func (s *SQLStorage) UpdateAccounts(ctx context.Context, accounts []external.Account) error + type Storage interface + GetLatestTime func(ctx context.Context, entity interface{}, tenant interface{}) (time.Time, error) + Insert func(ctx context.Context, batch interface{}) error + UpdateAccounts func(ctx context.Context, batch []external.Account) error + type Sync struct + Now time.Time + func (s *Sync) Run(ctx context.Context, executor Executor) error