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 (m *CacheMiddleware) Init(next http.Handler) middleware.Middleware
func (*CacheMiddleware) ServeHTTP ¶
func (m *CacheMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.