app

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBotWriter

func NewBotWriter(bot *telegram.Bot, chatID int) *botWriter

Types

type BytesUploader

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

func NewBytesUploader

func NewBytesUploader(name string, b []byte) *BytesUploader

func (*BytesUploader) Name

func (b *BytesUploader) Name() string

func (*BytesUploader) Reader

func (b *BytesUploader) Reader() (io.Reader, error)

func (*BytesUploader) Size

func (b *BytesUploader) Size() int64

type Handler

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

func NewHandler

func NewHandler(bot *telegram.Bot, logic *Logic, adminIDs []int) *Handler

func (*Handler) Handle

func (h *Handler) Handle(upd telegram.Update)

type Logic

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

func NewLogic

func NewLogic(cli *client.Client) *Logic

func (*Logic) CommandGenerate

func (l *Logic) CommandGenerate(w *botWriter, profileName string) ([]byte, error)

func (*Logic) CommandInit

func (l *Logic) CommandInit(w io.Writer, addr string) error

func (*Logic) CommandRemove

func (l *Logic) CommandRemove(w io.Writer)

func (*Logic) CommandStatus

func (l *Logic) CommandStatus() (string, error)

Jump to

Keyboard shortcuts

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