Versions in this module Expand all Collapse all v0 v0.2.0 Sep 20, 2022 Changes in this version + func Error(w http.ResponseWriter, status int) + func Logged(h func(w http.ResponseWriter, r *http.Request)) http.Handler + func WithOptions(h http.HandlerFunc, options HandlerOptions) http.Handler + type AuthenticationOptions struct + Required bool + ValidationFunc func(*http.Request) bool + type CorsOptions struct + AllowHeaders []string + AllowMethods []string + AllowOrigins []string + Enabled bool + type HandlerOptions struct + Authentication AuthenticationOptions + Cors CorsOptions + Methods []string