Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SyncMessages ¶
func SyncMessages( log logging.I, conn RemoteConnection, msgr MessageRepo, mb Mailbox, ) error
Types ¶
type AccountRepo ¶
func NewAccountRepo ¶
func NewAccountRepo(db kvs.DB) AccountRepo
type ClientConnector ¶
type ClientConnector func(useSSL bool) (RemoteConnection, error)
func ResolveClientConnector ¶
func ResolveClientConnector(addr string, acc Account) ClientConnector
type MailboxRepo ¶
type MailboxRepo interface { DumpTo(w io.Writer) error Save(owner kvs.UUID, mailbox Mailbox) error FetchByOwner(owner kvs.UUID) ([]Mailbox, error) Close() }
func NewMailboxRepo ¶
func NewMailboxRepo(db kvs.DB) MailboxRepo
type MessageRepo ¶
type MessageRepo interface { DumpTo(w io.Writer) error Save(owner kvs.UUID, msg Message) error FetchByOwner(owner kvs.UUID) ([]Message, error) Close() error }
func NewMessageRepo ¶
func NewMessageRepo(db kvs.DB) MessageRepo
type RemoteConnection ¶
type RemoteConnection interface { RemoteMailboxLister RemoteMessagesFetcher Close() error }
func RegisterAccount ¶
func RegisterAccount( log logging.I, addr string, accRepo AccountRepo, mbRepo MailboxRepo, acc *Account, connect ClientConnector, ) (RemoteConnection, error)
type RemoteMailboxLister ¶
Click to show internal directories.
Click to hide internal directories.