disk

package
v0.0.0-...-dc023d0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskCache

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

func DiskCacheFromPath

func DiskCacheFromPath(path string, size int) (*DiskCache, error)

func (*DiskCache) Add

func (d *DiskCache) Add(key string, header http.Header) (io.WriteCloser, error)

Add key,header, returns io.WriteCloser and error

func (*DiskCache) Get

func (d *DiskCache) Get(key string) (http.Header, io.ReadCloser, error)

Get key, returns header, body io.ReadCloser, error

func (*DiskCache) Remove

func (d *DiskCache) Remove(key string)

Jump to

Keyboard shortcuts

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