Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewHttpServer ¶
func NewHttpServer(config *s.HttpServerConfig, accountManager s.AccountManager) *Server
NewHttpServer creates a new HTTP server (without HTTPS)
func NewHttpsServer ¶
func NewHttpsServer( config *s.HttpServerConfig, certManager *autocert.Manager, accountManager s.AccountManager, ) *Server
NewHttpsServer creates a new HTTPs server (with HTTPS support) and a certManager that is responsible for generating and renewing Let's Encrypt certificate The listening address will be :443 no matter what was specified in s.HttpServerConfig.Address
func NewHttpsServerWithTLSConfig ¶
func NewHttpsServerWithTLSConfig( config *s.HttpServerConfig, tlsConfig *tls.Config, accountManager s.AccountManager, ) *Server
NewHttpsServerWithTLSConfig creates a new HTTPs server with a provided tls.Config. Usually used when you already have a certificate
Directories ¶
Path | Synopsis |
---|---|
Package api provides primitives to interact with the openapi HTTP API.
|
Package api provides primitives to interact with the openapi HTTP API. |
Click to show internal directories.
Click to hide internal directories.