Documentation
¶
Index ¶
- type MailboxBuilderServiceCapabilities
- type MailboxBuilderServiceInsertCallbackCapabilities
- type MailboxBuilderServiceInsertCapabilities
- type Service
- func (s *Service) Acquire(chatID int64) error
- func (s *Service) BuilderMounted(chatID int64) bool
- func (s *Service) CorrectHost(chatID int64, host string) error
- func (s *Service) CorrectHostCallback(chatID int64, messageID int, text string) error
- func (s *Service) CorrectMailbox(chatID int64, mailbox string) error
- func (s *Service) CorrectMailboxCallback(chatID int64, messageID int, text string) error
- func (s *Service) CorrectPassword(chatID int64, password string) error
- func (s *Service) CorrectPasswordCallback(chatID int64, messageID int, text string) error
- func (s *Service) CorrectPort(chatID int64, port int32) error
- func (s *Service) CorrectPortCallback(chatID int64, messageID int, text string) error
- func (s *Service) CorrectUsername(chatID int64, username string) error
- func (s *Service) CorrectUsernameCallback(chatID int64, messageID int, text string) error
- func (s *Service) DeleteMailbox(chatID int64, mailboxID int64, messageID int) error
- func (s *Service) GetBuilderStage(chatID int64) (int, error)
- func (s *Service) Help(chatID int64) error
- func (s *Service) Host(chatID int64, host string) error
- func (s *Service) Initial(chatID int64) error
- func (s *Service) Insert(chatID int64) error
- func (s *Service) ListMailboxes(chatID int64) error
- func (s *Service) Mailbox(chatID int64, mailbox string) error
- func (s *Service) MailboxDetail(chatID int64, mailboxID int64, messageID int) error
- func (s *Service) Password(chatID int64, password string) error
- func (s *Service) Poll(chatID int64) error
- func (s *Service) Port(chatID int64, port int32) error
- func (s *Service) ReturnToList(chatID int64, mailboxID int, messageID int) error
- func (s *Service) Start(chatID int64) error
- func (s *Service) Submit(chatID int64) error
- func (s *Service) SubmitCallback(chatID int64, messageID int, text string) error
- func (s *Service) Username(chatID int64, username string) error
- type TelegramAcquireCapabilities
- type TelegramCapabilities
- type TelegramDetailCallbackCapabilities
- type TelegramHelpCapabilities
- type TelegramInsertCallbackCapabilities
- type TelegramInsertCapabilities
- type TelegramListCallbackCapabilities
- type TelegramListCapabilities
- type TelegramPollCapabilities
- type TelegramStartCapabilities
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MailboxBuilderServiceCapabilities ¶
type MailboxBuilderServiceCapabilities interface { MailboxBuilderServiceInsertCapabilities MailboxBuilderServiceInsertCallbackCapabilities }
type MailboxBuilderServiceInsertCapabilities ¶
type MailboxBuilderServiceInsertCapabilities interface { Mount(chatID int64, builder *builder.MailboxBuilder) error Get(chatID int64) (*builder.MailboxBuilder, bool) }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService( telegramService TelegramCapabilities, mailboxBuilderService MailboxBuilderServiceCapabilities, client client.ImapConcentratorClient, ) *Service
func (*Service) BuilderMounted ¶
func (*Service) CorrectHostCallback ¶
func (*Service) CorrectMailbox ¶
func (*Service) CorrectMailboxCallback ¶
func (*Service) CorrectPassword ¶
func (*Service) CorrectPasswordCallback ¶
func (*Service) CorrectPortCallback ¶
func (*Service) CorrectUsername ¶
func (*Service) CorrectUsernameCallback ¶
func (*Service) DeleteMailbox ¶
func (*Service) ListMailboxes ¶
func (*Service) MailboxDetail ¶
func (*Service) ReturnToList ¶
func (*Service) SubmitCallback ¶
type TelegramCapabilities ¶
type TelegramInsertCallbackCapabilities ¶
type TelegramInsertCallbackCapabilities interface { InsertSubmitResponse(chatID int64, messageID int) error AskForHost(chatID int64) error AskForPort(chatID int64) error AskForMailbox(chatID int64) error AskForUsername(chatID int64) error AskForPassword(chatID int64) error AskForSubmit(chatID int64, request *pb.MailboxV1) error }
type TelegramPollCapabilities ¶
type TelegramPollCapabilities interface { }
Click to show internal directories.
Click to hide internal directories.