Documentation ¶
Index ¶
- func Authenticate(next func(w http.ResponseWriter, r *http.Request)) func(w http.ResponseWriter, r *http.Request)
- func Authorized(next func(w http.ResponseWriter, r *http.Request)) func(w http.ResponseWriter, r *http.Request)
- func Logging(next http.Handler) http.Handler
- func PanicRecoverer(next http.Handler) http.Handler
- type ContextAuthKey
- type LogResponseWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
func Authenticate(next func(w http.ResponseWriter, r *http.Request)) func(w http.ResponseWriter, r *http.Request)
Authenticate request only if authorization header is set
func Authorized ¶
func Authorized(next func(w http.ResponseWriter, r *http.Request)) func(w http.ResponseWriter, r *http.Request)
Types ¶
type ContextAuthKey ¶
type ContextAuthKey struct{}
type LogResponseWriter ¶
type LogResponseWriter struct { http.ResponseWriter // contains filtered or unexported fields }
func NewLogResponseWriter ¶
func NewLogResponseWriter(w http.ResponseWriter) *LogResponseWriter
func (*LogResponseWriter) WriteHeader ¶
func (w *LogResponseWriter) WriteHeader(code int)
Click to show internal directories.
Click to hide internal directories.