Documentation ¶
Index ¶
- func AutoCertTLSConfig(email string, policy autocert.HostPolicy) *tls.Config
- func AutoCertWhitelist(email string, hosts ...string) *tls.Config
- func BaseTLSConfig() *tls.Config
- func HTTP3Middleware(next http.Handler, addr string) http.Handler
- func LocalAndAutoCert(cert, key, email string, policy autocert.HostPolicy) *tls.Config
- func LocalTLSConfig(certFile, keyFile string) *tls.Config
- func RunServer(ctx context.Context, srv *http.Server)
- func Server(opts ...func(*http.Server)) *http.Server
- func TlsWithAutoCert(conf *tls.Config, email string, policy autocert.HostPolicy) *tls.Config
- func TlsWithLocalCert(conf *tls.Config, certFile, keyFile string) (*tls.Config, error)
- func VaultTLSConfig(vaultAddr, vaultToken, vaultRole, cn string, ttl time.Duration) (*tls.Config, error)
- func WithAddr(addr string) func(*http.Server)
- func WithHandler(h http.Handler) func(*http.Server)
- func WithTLSConfig(conf *tls.Config) func(*http.Server)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoCertTLSConfig ¶
func AutoCertTLSConfig(email string, policy autocert.HostPolicy) *tls.Config
func AutoCertWhitelist ¶ added in v0.0.2
func BaseTLSConfig ¶ added in v0.0.3
func LocalAndAutoCert ¶ added in v0.0.4
func LocalAndAutoCert(cert, key, email string, policy autocert.HostPolicy) *tls.Config
LocalAndAutoCert is loading both local and autocert Certificates Local certificates are checked first
func LocalTLSConfig ¶
func TlsWithAutoCert ¶ added in v0.0.3
func TlsWithLocalCert ¶ added in v0.0.3
func VaultTLSConfig ¶ added in v0.0.8
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.