Versions in this module Expand all Collapse all v0 v0.1.1 Jan 27, 2024 Changes in this version + func NewPostgresConn() (*sql.DB, error) + type Logger interface + Error func(msg string, args ...any) + ErrorContext func(ctx context.Context, msg string, args ...any) + Info func(msg string, args ...any) + InfoContext func(ctx context.Context, msg string, args ...any) + Warn func(msg string, args ...any) + WarnContext func(ctx context.Context, msg string, args ...any) + type Middleware interface + Wrap func(http.Handler) http.Handler + type Server struct + func NewServer(opts ...ServerOpt) *Server + func (s *Server) ListenAndServe() error + func (s *Server) Shutdown(ctx context.Context) error + type ServerOpt func(*Server) + func WithAddr(addr string) ServerOpt + func WithLogger(logger Logger) ServerOpt + func WithMiddleware(mw Middleware) ServerOpt + func WithRouter(r router) ServerOpt