cache

package
v0.0.0-...-0798a42 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FolderContents

type FolderContents struct {
	MailboxID  jmap.ID
	QueryState string
	Filter     *types.SearchCriteria
	Sort       []*types.SortCriterion
	MessageIDs []jmap.ID
}

func (*FolderContents) NeedsRefresh

func (f *FolderContents) NeedsRefresh(
	filter *types.SearchCriteria, sort []*types.SortCriterion,
) bool

type IDList

type IDList struct {
	IDs []jmap.ID
}

type JMAPCache

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

func NewJMAPCache

func NewJMAPCache(state, blobs bool, accountName string) *JMAPCache

func (*JMAPCache) DeleteBlob

func (c *JMAPCache) DeleteBlob(id jmap.ID) error

func (*JMAPCache) DeleteEmail

func (c *JMAPCache) DeleteEmail(id jmap.ID) error

func (*JMAPCache) DeleteFolderContents

func (c *JMAPCache) DeleteFolderContents(mailboxId jmap.ID) error

func (*JMAPCache) DeleteMailbox

func (c *JMAPCache) DeleteMailbox(id jmap.ID) error

func (*JMAPCache) DeleteSession

func (c *JMAPCache) DeleteSession() error

func (*JMAPCache) GetBlob

func (c *JMAPCache) GetBlob(id jmap.ID) ([]byte, error)

func (*JMAPCache) GetEmail

func (c *JMAPCache) GetEmail(id jmap.ID) (*email.Email, error)

func (*JMAPCache) GetEmailState

func (c *JMAPCache) GetEmailState() (string, error)

func (*JMAPCache) GetFolderContents

func (c *JMAPCache) GetFolderContents(mailboxId jmap.ID) (*FolderContents, error)

func (*JMAPCache) GetMailbox

func (c *JMAPCache) GetMailbox(id jmap.ID) (*mailbox.Mailbox, error)

func (*JMAPCache) GetMailboxList

func (c *JMAPCache) GetMailboxList() ([]jmap.ID, error)

func (*JMAPCache) GetMailboxState

func (c *JMAPCache) GetMailboxState() (string, error)

func (*JMAPCache) GetSession

func (c *JMAPCache) GetSession() (*jmap.Session, error)

func (*JMAPCache) PutBlob

func (c *JMAPCache) PutBlob(id jmap.ID, buf []byte) error

func (*JMAPCache) PutEmail

func (c *JMAPCache) PutEmail(id jmap.ID, e *email.Email) error

func (*JMAPCache) PutEmailState

func (c *JMAPCache) PutEmailState(state string) error

func (*JMAPCache) PutFolderContents

func (c *JMAPCache) PutFolderContents(mailboxId jmap.ID, m *FolderContents) error

func (*JMAPCache) PutMailbox

func (c *JMAPCache) PutMailbox(id jmap.ID, m *mailbox.Mailbox) error

func (*JMAPCache) PutMailboxList

func (c *JMAPCache) PutMailboxList(list []jmap.ID) error

func (*JMAPCache) PutMailboxState

func (c *JMAPCache) PutMailboxState(state string) error

func (*JMAPCache) PutSession

func (c *JMAPCache) PutSession(s *jmap.Session) error

Jump to

Keyboard shortcuts

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