Documentation ¶
Index ¶
- Variables
- type CallbackProcessor
- type Cmd
- type CmdProcessor
- type Dispatcher
- func (d *Dispatcher) ProcessCallback(query *tgbotapi.CallbackQuery) (*tgbotapi.CallbackConfig, *tgbotapi.MessageConfig, error)
- func (d *Dispatcher) ProcessCmd(msg *tgbotapi.Message) (*tgbotapi.MessageConfig, error)
- func (d *Dispatcher) ProcessInput(msg *tgbotapi.Message) (*tgbotapi.MessageConfig, error)
- type InputProcessor
- type InputType
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CallbackProcessor ¶
type CallbackProcessor interface { Process( query *tgbotapi.CallbackQuery, args []string, ) (*tgbotapi.CallbackConfig, *tgbotapi.MessageConfig) }
type CmdProcessor ¶
type CmdProcessor interface {
Process(msg *tgbotapi.Message) *tgbotapi.MessageConfig
}
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func NewDispatcher ¶
func NewDispatcher(db *db.Svc) *Dispatcher
func (*Dispatcher) ProcessCallback ¶
func (d *Dispatcher) ProcessCallback( query *tgbotapi.CallbackQuery, ) (*tgbotapi.CallbackConfig, *tgbotapi.MessageConfig, error)
func (*Dispatcher) ProcessCmd ¶
func (d *Dispatcher) ProcessCmd( msg *tgbotapi.Message, ) (*tgbotapi.MessageConfig, error)
func (*Dispatcher) ProcessInput ¶
func (d *Dispatcher) ProcessInput( msg *tgbotapi.Message, ) (*tgbotapi.MessageConfig, error)
type InputProcessor ¶
type InputProcessor interface {
Process(msg *tgbotapi.Message) *tgbotapi.MessageConfig
}
Click to show internal directories.
Click to hide internal directories.