Versions in this module Expand all Collapse all v0 v0.1.0 Feb 15, 2022 Changes in this version + func NewMiddleware(next http.HandlerFunc, store store.Store, opts ...Options) http.HandlerFunc + type AllowBypassHeader struct + Key string + Value string + func (opt AllowBypassHeader) ExtractBool(r *http.Request) bool + func (opt AllowBypassHeader) ExtractString(r *http.Request) string + type AllowBypassMethod struct + Key string + func (opt AllowBypassMethod) ExtractBool(r *http.Request) bool + func (opt AllowBypassMethod) ExtractString(r *http.Request) string + type HttpRecorder struct + Body *bytes.Buffer + func NewHttpRecorder(responseWriter http.ResponseWriter) *HttpRecorder + func (hr *HttpRecorder) Write(buf []byte) (int, error) + func (hr *HttpRecorder) WriteString(str string) (int, error) + type Options interface + ExtractBool func(r *http.Request) bool + ExtractString func(r *http.Request) string + type UseHeaderKey struct + Key string + func (opt UseHeaderKey) ExtractBool(r *http.Request) bool + func (opt UseHeaderKey) ExtractString(r *http.Request) string + type UseMethodKey struct + func (opt UseMethodKey) ExtractBool(r *http.Request) bool + func (opt UseMethodKey) ExtractString(r *http.Request) string + type UsePathKey struct + func (opt UsePathKey) ExtractBool(r *http.Request) bool + func (opt UsePathKey) ExtractString(r *http.Request) string + type UseQueryParamsKey struct + Key string + func (opt UseQueryParamsKey) ExtractBool(r *http.Request) bool + func (opt UseQueryParamsKey) ExtractString(r *http.Request) string