teleterm

package
v2.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, db *sql.DB, telebotToken string)

Types

type Button

type Button struct {
	Name string
	Cmd  string
}

type Persistence

type Persistence struct {
	// contains filtered or unexported fields
}

func (*Persistence) AddButton

func (p *Persistence) AddButton(ctx context.Context, name string, cmd string) error

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

func (p *Persistence) GetButtonByname(ctx context.Context, buttonName string) (button Button, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL