commands

package
v0.0.0-...-87e7b27 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandHandler

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

func NewCommandHandler

func NewCommandHandler(service ServiceCapabilities) *CommandHandler

func (*CommandHandler) Acquire

func (c *CommandHandler) Acquire(update tgbotapi.Update)

func (*CommandHandler) Help

func (c *CommandHandler) Help(update tgbotapi.Update)

func (*CommandHandler) Insert

func (c *CommandHandler) Insert(update tgbotapi.Update)

func (*CommandHandler) List

func (c *CommandHandler) List(update tgbotapi.Update)

func (*CommandHandler) Poll

func (c *CommandHandler) Poll(update tgbotapi.Update)

func (*CommandHandler) Start

func (c *CommandHandler) Start(update tgbotapi.Update)

type ServiceAcquireCapabilities

type ServiceAcquireCapabilities interface {
	Acquire(chatID int64) error
}

type ServiceHelpCapabilities

type ServiceHelpCapabilities interface {
	Help(chatID int64) error
}

type ServiceInsertCapabilities

type ServiceInsertCapabilities interface {
	Insert(chatID int64) error
}

type ServiceListCapabilities

type ServiceListCapabilities interface {
	ListMailboxes(chatID int64) error
}

type ServicePollCapabilities

type ServicePollCapabilities interface {
	Poll(chatID int64) error
}

type ServiceStartCapabilities

type ServiceStartCapabilities interface {
	Start(chatID int64) error
}

Jump to

Keyboard shortcuts

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