Versions in this module Expand all Collapse all v0 v0.0.3 Sep 30, 2023 Changes in this version + func AllowCORS(next http.Handler, opts *CORSOptions) http.Handler + func DumpHttp(logLevel logger.Level) func(http.Handler) http.Handler + func MiddlewareSequencer(baseHandler http.Handler, mws ...func(http.Handler) http.Handler) http.Handler + func PanicCatcher(next http.Handler) http.Handler + func Timer(logLevel logger.Level) func(http.Handler) http.Handler + type CORSOptions struct + AllowCredentials bool + AllowHeaders []string + AllowMethods []string + AllowedOrigins []string + MaxAge int + type Controller struct + GracefulTimeout time.Duration + Server *http.Server + func (c *Controller) Restart() + func (c *Controller) Shutdown() + func (c *Controller) Start() error + type Formatter interface + WriteResponse func(w http.ResponseWriter, statusCode int, v any) + func NewFormatter(coder coder.Coder) Formatter