cacher

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disk

type Disk struct {
	// Root is the root of the caches.
	Root string `mapstructure:"root"`
}

Disk implements the `goproxy.Cacher` by using the disk.

func (*Disk) Cache

func (d *Disk) Cache(ctx context.Context, name string) (goproxy.Cache, error)

Cache implements the `goproxy.Cacher`.

func (*Disk) NewHash

func (d *Disk) NewHash() hash.Hash

NewHash implements the `goproxy.Cacher`.

func (*Disk) SetCache

func (d *Disk) SetCache(ctx context.Context, c goproxy.Cache) error

SetCache implements the `goproxy.Cacher`.

Jump to

Keyboard shortcuts

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