cache

package
v0.0.0-...-4f3ca93 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	AddHeaders(header http.Header)
	AddProjectHeaders(header http.Header, project maven.Identifier)

	LogHandler() macaron.Handler

	PurgeAll() bool
	PurgeProject(project maven.Identifier) bool
}

func Create

func Create(logger *log.Logger, config string) (Cache, error)

type FastlyCache

type FastlyCache struct {
	*fastly.Cache
}

func (*FastlyCache) AddHeaders

func (c *FastlyCache) AddHeaders(header http.Header)

func (*FastlyCache) AddProjectHeaders

func (c *FastlyCache) AddProjectHeaders(header http.Header, project maven.Identifier)

func (*FastlyCache) PurgeProject

func (c *FastlyCache) PurgeProject(project maven.Identifier) bool

Jump to

Keyboard shortcuts

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