fscache

package
v0.0.0-...-be20f81 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotExists = errors.New("fscache: file with such key does not exist in cache")

Functions

This section is empty.

Types

type FSCache

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

func New

func New() (FSCache, error)

func (FSCache) Close

func (fc FSCache) Close() error

func (FSCache) Get

func (fc FSCache) Get(key string) (io.ReadCloser, error)

func (FSCache) GetPath

func (fc FSCache) GetPath(key string) (string, error)

func (FSCache) Set

func (fc FSCache) Set(r io.Reader) (string, error)

Jump to

Keyboard shortcuts

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