persistence

package
v0.0.0-...-48d6722 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: GPL-3.0-or-later

Index

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

func (*Persistence) SaveMails

func (p *Persistence) SaveMails(mails []domain.SaveMail) error

func (*Persistence) UpdateUid

func (p *Persistence) UpdateUid(id int64, uid uint32) error

Directories

Path Synopsis
SPDX-License-Identifier: GPL-3.0-or-later
SPDX-License-Identifier: GPL-3.0-or-later

Jump to

Keyboard shortcuts

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