cache

package
v1.8.12 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package cache provides access to contents inside a cache directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func New

func New(dir, version string) (*Cache, error)

func (*Cache) GetDBDir

func (c *Cache) GetDBDir() string

GetDBDir returns folder for db files.

func (*Cache) GetIMAPCachePath

func (c *Cache) GetIMAPCachePath() string

GetIMAPCachePath returns path to file with IMAP status.

func (*Cache) GetTransferDir

func (c *Cache) GetTransferDir() string

GetTransferDir returns folder for import-export rules files.

func (*Cache) RemoveOldVersions

func (c *Cache) RemoveOldVersions() error

RemoveOldVersions removes any cache dirs that are not the current version.

Jump to

Keyboard shortcuts

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