Documentation ¶
Index ¶
- Variables
- type Mailbox
- func (mbox *Mailbox) ForEach(f func(seqNum, uid uint32, apiID string) error) error
- func (mbox *Mailbox) FromApiID(apiID string) (seqNum uint32, uid uint32, err error)
- func (mbox *Mailbox) FromSeqNum(seqNum uint32) (apiID string, err error)
- func (mbox *Mailbox) FromUid(uid uint32) (apiID string, err error)
- func (mbox *Mailbox) Reset() error
- func (mbox *Mailbox) Sync(messages []*protonmail.Message) error
- func (mbox *Mailbox) UidNext() (uint32, error)
- type User
- func (u *User) Close() error
- func (u *User) CreateMessage(msg *protonmail.Message) (seqNums map[string]uint32, err error)
- func (u *User) DeleteMessage(apiID string) (seqNums map[string]uint32, err error)
- func (u *User) Mailbox(labelID string) (*Mailbox, error)
- func (u *User) Message(apiID string) (*protonmail.Message, error)
- func (u *User) ResetMessages() error
- func (u *User) UpdateMessage(apiID string, update *protonmail.EventMessageUpdate) (createdSeqNums map[string]uint32, deletedSeqNums map[string]uint32, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("message not found in local database")
Functions ¶
This section is empty.
Types ¶
type Mailbox ¶
type Mailbox struct {
// contains filtered or unexported fields
}
func (*Mailbox) FromSeqNum ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
func (*User) CreateMessage ¶
func (*User) DeleteMessage ¶
func (*User) ResetMessages ¶
func (*User) UpdateMessage ¶
func (u *User) UpdateMessage(apiID string, update *protonmail.EventMessageUpdate) (createdSeqNums map[string]uint32, deletedSeqNums map[string]uint32, err error)
Click to show internal directories.
Click to hide internal directories.