Documentation ¶
Index ¶
- type BotHandler
- type BotRouter
- type Config
- type DefaultParser
- type Params
- type QueryParser
- type Service
- func (s *Service) AllIngridients(update tgbotapi.Update, params Params) error
- func (s *Service) FindIngridient(update tgbotapi.Update, params Params) error
- func (s *Service) RandomIngridient(update tgbotapi.Update, params Params) error
- func (s *Service) SendErrorMessage(update tgbotapi.Update, err error)
- type ServiceUrl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotRouter ¶
type BotRouter struct {
// contains filtered or unexported fields
}
func NewBotRouter ¶
type Config ¶
type Config struct {
FoodApi ServiceUrl
}
type DefaultParser ¶
type DefaultParser struct { }
func (DefaultParser) IsCommand ¶
func (p DefaultParser) IsCommand(chunk string) bool
func (DefaultParser) IsFlag ¶
func (p DefaultParser) IsFlag(chunk string) bool
func (*DefaultParser) Parse ¶
func (p *DefaultParser) Parse(query string) Params
type Params ¶
func (Params) TouchParam ¶
type QueryParser ¶
type Service ¶
type Service struct { Ingridients ingridients.Functionality Errors e.Factory Bot *tgbotapi.BotAPI Router *BotRouter }
func (*Service) AllIngridients ¶
func (*Service) FindIngridient ¶
func (*Service) RandomIngridient ¶
type ServiceUrl ¶
Click to show internal directories.
Click to hide internal directories.