cache

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: May 27, 2016 License: GPL-3.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PartWriter

func PartWriter(cz *types.CacheZone, objID *types.ObjectID, ContentRange httputils.ContentRange) io.WriteCloser

PartWriter creates a io.WriteCloser that statefully writes sequential parts of an object to the supplied storage.

Types

type CachingProxy

type CachingProxy struct {
	*types.Location
	// contains filtered or unexported fields
}

CachingProxy is resposible for caching the metadata and parts the requested objects to `loc.Storage`, according to the `loc.Algorithm`.

func New

New creates and returns a ready to used Handler.

func (*CachingProxy) RequestHandle

func (c *CachingProxy) RequestHandle(ctx context.Context, resp http.ResponseWriter, req *http.Request)

RequestHandle is the main serving function

Jump to

Keyboard shortcuts

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