Documentation
¶
Index ¶
- type Option
- func WithAddress(address string) Option
- func WithCORS(enabled bool) Option
- func WithDebug(debug bool) Option
- func WithLogger(logger *zap.Logger) Option
- func WithMiddleware(middleware func(http.Handler) http.Handler) Option
- func WithPathPrefix(prefix string) Option
- func WithPort(port int) Option
- func WithShutdownTimeout(timeout time.Duration) Option
- func WithStartupTimeout(timeout time.Duration) Option
- func WithStripQueryString(enabled bool) Option
- type Server
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(s *Server)
func WithAddress ¶
func WithLogger ¶
func WithPathPrefix ¶
func WithShutdownTimeout ¶ added in v0.1.5
func WithStartupTimeout ¶ added in v0.1.5
func WithStripQueryString ¶ added in v0.2.1
Click to show internal directories.
Click to hide internal directories.