client

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOffset

func GetOffset(ctx context.Context, mailbox *pb.MailboxV1) (uint32, error)

Types

type ImapClient

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

func NewImapClient

func NewImapClient(
	db *repo.Repository,
	notifications chan *pb.NotificationV1,
	errs chan error,
) (*ImapClient, error)

func (*ImapClient) Poll

func (i *ImapClient) Poll(ctx context.Context) error

func (*ImapClient) PollFor

func (i *ImapClient) PollFor(ctx context.Context, tgChatID int64) error

Jump to

Keyboard shortcuts

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