Documentation ¶
Index ¶
- func Start(ctx context.Context, db *sql.DB, telebotToken string)
- type Button
- type Persistence
- func (p *Persistence) AddButton(ctx context.Context, name string, cmd string) error
- func (p *Persistence) DeleteButtonsByName(ctx context.Context, name string) error
- func (p *Persistence) GetAllButtons(ctx context.Context) (buttons []Button, err error)
- func (p *Persistence) GetButtonByname(ctx context.Context, buttonName string) (button Button, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Persistence ¶
type Persistence struct {
// contains filtered or unexported fields
}
func (*Persistence) DeleteButtonsByName ¶
func (p *Persistence) DeleteButtonsByName(ctx context.Context, name string) error
func (*Persistence) GetAllButtons ¶
func (p *Persistence) GetAllButtons(ctx context.Context) (buttons []Button, err error)
func (*Persistence) GetButtonByname ¶
Click to show internal directories.
Click to hide internal directories.