Versions in this module Expand all Collapse all v1 v1.0.1 Nov 14, 2025 Changes in this version + func WriteError(w http.ResponseWriter, r *http.Request, status int, code, message string, ...) + func WriteJSON(w http.ResponseWriter, status int, data any) + type Config struct + IdleTimeout time.Duration + ListenAddr string + MaxHeaderBytes int + ReadHeaderTimeout time.Duration + ReadTimeout time.Duration + WriteTimeout time.Duration + func DefaultConfig() Config + type Server struct + Router *mux.Router + func NewServer(cfg Config, log zerolog.Logger) *Server + func (s *Server) EnableCORS() + func (s *Server) Start(ctx context.Context) error + func (s *Server) Use(mw func(http.Handler) http.Handler)