cache

package
v0.0.0-...-afcd4c4 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// headers
	GeneratorHeaderKey         = "X-Generator"
	CachedContentHeaderValue   = "crauti/cache"
	UpstreamContentHeaderValue = "crauti/upstream"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheMiddleware

type CacheMiddleware struct {
	middleware.Middleware
	// contains filtered or unexported fields
}

func (*CacheMiddleware) Init

func (*CacheMiddleware) ServeHTTP

func (m *CacheMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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