Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerWrapper ¶ added in v1.0.17
func HandlerWrapper(next http.Handler) http.HandlerFunc
HandlerWrapper caches all interactions with the API based on Method, URI, and status code for the wrapped handler.
func SetWithDuration ¶ added in v1.0.17
SetWithDuration sets a value in cache.
Types ¶
type ResponseWriterTee ¶
type ResponseWriterTee struct { Buffer bytes.Buffer StatusCode int // contains filtered or unexported fields }
ResponseWriterTee captures input to an http.ResponseWriter
func (*ResponseWriterTee) Header ¶
func (w *ResponseWriterTee) Header() http.Header
Header proxies http.ResponseWriter Header
func (*ResponseWriterTee) Write ¶
func (w *ResponseWriterTee) Write(b []byte) (int, error)
Write proxies http.ResponseWriter Write
func (*ResponseWriterTee) WriteHeader ¶
func (w *ResponseWriterTee) WriteHeader(statusCode int)
WriteHeader proxies http.ResponseWriter WriteHeader
Click to show internal directories.
Click to hide internal directories.