Documentation ¶ Index ¶ func BuildLogger(cfg LogConfig) log.Writer type LogConfig type Server func New(cxt context.Context, cfg ServerConfig) *Server func (s *Server) Start(r chi.Router, l log.Writer) error type ServerConfig Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func BuildLogger ¶ func BuildLogger(cfg LogConfig) log.Writer Types ¶ type LogConfig ¶ added in v0.0.12 type LogConfig struct { LogDriver string LogLevel string RequestBody bool ResponseBody bool JSON bool AppName string } type Server ¶ type Server struct { // contains filtered or unexported fields } func New ¶ func New(cxt context.Context, cfg ServerConfig) *Server func (*Server) Start ¶ added in v0.0.11 func (s *Server) Start(r chi.Router, l log.Writer) error type ServerConfig ¶ type ServerConfig struct { BindingIP string BindingPort string ReadTimeout int ReadHeaderTimeout int WriteTimeout int IdleTimeout int EnableTLS bool TLSCertPath string TLSCertKeyPath string } Source Files ¶ View all Source files logger.goserver.go Click to show internal directories. Click to hide internal directories.