cache

package
Version: v0.0.0-...-ba21fa1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstance

func GetInstance() *cacheStore

func NewCacheStore

func NewCacheStore() *cacheStore

Types

type URLCache

type URLCache struct {
	LastModified string
	Etag         string
	ExpiresAt    time.Time
	CacheControl *cachecontrol.CacheControl
	MD5          string
}

func NewURLCache

func NewURLCache(res *http.Response) (*URLCache, string)

func (*URLCache) Apply

func (c *URLCache) Apply(req *http.Request)

func (*URLCache) Available

func (c *URLCache) Available() bool

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL