Documentation ¶
Index ¶
- type Context
- func (c *Context) Init()
- func (c *Context) RegisterBroadcasterInterface(bi broadcasterinterface.BroadcasterInterface)
- func (c *Context) RegisterChatterInterface(ci chatterinterface.ChatterInterface)
- func (c *Context) RegisterDataCacheInterface(di datacacheinterface.DataCacheInterface)
- func (c *Context) RegisterForwarderInterface(fi forwarderinterface.ForwarderInterface)
- func (c *Context) RegisterMigrationsInterface(mi migrationsinterface.MigrationsInterface)
- func (c *Context) RegisterOrdersInterface(oi ordersinterface.OrdersInterface)
- func (c *Context) RegisterPinnerInterface(pi pinnerinterface.PinnerInterface)
- func (c *Context) RegisterPokedexerInterface(pi pokedexerinterface.PokedexerInterface)
- func (c *Context) RegisterReminderInterface(ri reminderinterface.ReminderInterface)
- func (c *Context) RegisterRouterInterface(ri routerinterface.RouterInterface)
- func (c *Context) RegisterSenderInterface(si senderinterface.SenderInterface)
- func (c *Context) RegisterSquaderInterface(si squaderinterface.SquaderInterface)
- func (c *Context) RegisterStatisticsInterface(si statisticsinterface.StatisticsInterface)
- func (c *Context) RegisterTalkersInterface(ti talkersinterface.TalkersInterface)
- func (c *Context) RegisterUsersInterface(ui usersinterface.UsersInterface)
- func (c *Context) RegisterWelcomerInterface(wi welcomerinterface.WelcomerInterface)
- func (c *Context) RunDatabaseMigrations()
- func (c *Context) StartBot()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { StartupFlags *flagger.Flagger Cfg *config.Config Cron *cron.Cron Log *mogrus.LoggerHandler Bot *tgbotapi.BotAPI DataCache datacacheinterface.DataCacheInterface Forwarder forwarderinterface.ForwarderInterface Migrations migrationsinterface.MigrationsInterface Router routerinterface.RouterInterface Pokedexer pokedexerinterface.PokedexerInterface Db *sqlx.DB Talkers talkersinterface.TalkersInterface Broadcaster broadcasterinterface.BroadcasterInterface Welcomer welcomerinterface.WelcomerInterface Pinner pinnerinterface.PinnerInterface Reminder reminderinterface.ReminderInterface Chatter chatterinterface.ChatterInterface Sender senderinterface.SenderInterface Squader squaderinterface.SquaderInterface Users usersinterface.UsersInterface Statistics statisticsinterface.StatisticsInterface Orders ordersinterface.OrdersInterface }
Context is an application context struct
func (*Context) RegisterBroadcasterInterface ¶
func (c *Context) RegisterBroadcasterInterface(bi broadcasterinterface.BroadcasterInterface)
RegisterBroadcasterInterface registering broadcaster interface in application
func (*Context) RegisterChatterInterface ¶
func (c *Context) RegisterChatterInterface(ci chatterinterface.ChatterInterface)
RegisterChatterInterface registers chatter interface in application
func (*Context) RegisterDataCacheInterface ¶
func (c *Context) RegisterDataCacheInterface(di datacacheinterface.DataCacheInterface)
RegisterDataCacheInterface registers datacache interface in application
func (*Context) RegisterForwarderInterface ¶
func (c *Context) RegisterForwarderInterface(fi forwarderinterface.ForwarderInterface)
RegisterForwarderInterface registers forwarder interface in application
func (*Context) RegisterMigrationsInterface ¶
func (c *Context) RegisterMigrationsInterface(mi migrationsinterface.MigrationsInterface)
RegisterMigrationsInterface registering migrations interface in application
func (*Context) RegisterOrdersInterface ¶
func (c *Context) RegisterOrdersInterface(oi ordersinterface.OrdersInterface)
RegisterOrdersInterface registers orders interface in application
func (*Context) RegisterPinnerInterface ¶
func (c *Context) RegisterPinnerInterface(pi pinnerinterface.PinnerInterface)
RegisterPinnerInterface registering pinner interface in application
func (*Context) RegisterPokedexerInterface ¶
func (c *Context) RegisterPokedexerInterface(pi pokedexerinterface.PokedexerInterface)
RegisterPokedexerInterface registering parsers interface in application
func (*Context) RegisterReminderInterface ¶
func (c *Context) RegisterReminderInterface(ri reminderinterface.ReminderInterface)
RegisterReminderInterface registering reminder interface in application
func (*Context) RegisterRouterInterface ¶
func (c *Context) RegisterRouterInterface(ri routerinterface.RouterInterface)
RegisterRouterInterface registering router interface in application
func (*Context) RegisterSenderInterface ¶
func (c *Context) RegisterSenderInterface(si senderinterface.SenderInterface)
RegisterSenderInterface registering sender interface in application
func (*Context) RegisterSquaderInterface ¶
func (c *Context) RegisterSquaderInterface(si squaderinterface.SquaderInterface)
RegisterSquaderInterface registers squader interface in application
func (*Context) RegisterStatisticsInterface ¶
func (c *Context) RegisterStatisticsInterface(si statisticsinterface.StatisticsInterface)
RegisterStatisticsInterface registers statistics interface in application
func (*Context) RegisterTalkersInterface ¶
func (c *Context) RegisterTalkersInterface(ti talkersinterface.TalkersInterface)
RegisterTalkersInterface registering talkers interface in application
func (*Context) RegisterUsersInterface ¶
func (c *Context) RegisterUsersInterface(ui usersinterface.UsersInterface)
RegisterUsersInterface registers users interface in application
func (*Context) RegisterWelcomerInterface ¶
func (c *Context) RegisterWelcomerInterface(wi welcomerinterface.WelcomerInterface)
RegisterWelcomerInterface registering welcomer interface in application
func (*Context) RunDatabaseMigrations ¶
func (c *Context) RunDatabaseMigrations()
RunDatabaseMigrations applies migrations on bot's startup