cache

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cacher

type Cacher interface {
	Storer
	Fetcher
}

Cacher defines all methods that a Cache should implement.

type Fetcher

type Fetcher interface {
	Read(w io.Writer, filename string) error
	Has(filename string) bool
	Path(filename string) string
}

Fetcher defines the methods that a Cache should implement to read.

type Storer

type Storer interface {
	Store(r io.Reader, filename string) error
	Writer(filename string) (*os.File, error)
	Invalidate(filename string) error
}

Storer defines the methods that a Cache should implement to write.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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