Documentation
¶
Index ¶
- func WithAutoTLS(autoTLS bool) func(*Server)
- func WithDomains(domains []string) func(*Server)
- func WithLogFormat(logformat string) func(*Server)
- func WithLogLevel(loglevel string) func(*Server)
- func WithMetrics(metrics bool) func(*Server)
- func WithMiddlewares(mws ...func(http.Handler) http.Handler) func(*Server)
- func WithPort(port int) func(*Server)
- func WithTLSCert(tlsCertPath string) func(*Server)
- func WithTLSKey(tlsKeyPath string) func(*Server)
- func WithValidation(validate bool) func(*Server)
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAutoTLS ¶
WithAutoTLS configures the ability to use automatic TLS or not.
func WithDomains ¶
WithDomain configures the domain name(s) to issue a cert for with auto TLS.
func WithLogFormat ¶
WithLogFormat configures the log format of the server.
func WithLogLevel ¶
WithLogLevel configures the log level of the server.
func WithMetrics ¶
WithMetrics configures the enablement of Prometheus metrics or not.
func WithMiddlewares ¶
WithMiddlewares adds middleware to the mux.
func WithPort ¶
WithPort configures the server to listen on the specified port when calling Start().
func WithTLSCert ¶
WithTLSCert configures the certificate path for a custom certificate.
func WithTLSKey ¶
WithTLSKey configures the certificate key path for a custom key.
func WithValidation ¶
WithValidation ensures configuration options are valid when creating a new server.