Documentation ¶
Overview ¶
SPDX-License-Identifier: GPL-3.0-or-later
Index ¶
- type Persistence
- func (p *Persistence) AllFolders() ([]*domain.ImapFolder, error)
- func (p *Persistence) Close() error
- func (p *Persistence) FindMailByHash(class domain.MailClass, folder string, mailIdHash string) (*domain.SavedImapMail, error)
- func (p *Persistence) GetMailsInFolder(class domain.MailClass, folder string) ([]*domain.SavedImapMail, error)
- func (p *Persistence) SaveFolder(name string, uidValidity uint32) error
- func (p *Persistence) SaveMails(mails []domain.SaveMail) error
- func (p *Persistence) UpdateUid(id int64, uid uint32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Persistence ¶
type Persistence struct {
// contains filtered or unexported fields
}
func NewPersistence ¶
func NewPersistence(datasource string) (*Persistence, error)
func (*Persistence) AllFolders ¶
func (p *Persistence) AllFolders() ([]*domain.ImapFolder, error)
func (*Persistence) Close ¶
func (p *Persistence) Close() error
func (*Persistence) FindMailByHash ¶
func (p *Persistence) FindMailByHash(class domain.MailClass, folder string, mailIdHash string) (*domain.SavedImapMail, error)
func (*Persistence) GetMailsInFolder ¶
func (p *Persistence) GetMailsInFolder(class domain.MailClass, folder string) ([]*domain.SavedImapMail, error)
func (*Persistence) SaveFolder ¶
func (p *Persistence) SaveFolder(name string, uidValidity uint32) error
Directories ¶
Path | Synopsis |
---|---|
SPDX-License-Identifier: GPL-3.0-or-later
|
SPDX-License-Identifier: GPL-3.0-or-later |
Click to show internal directories.
Click to hide internal directories.