Documentation ¶
Overview ¶
Package server provides an API gateway server which handles inbound requests
Index ¶
- type Option
- func ACMEHosts(hosts ...string) Option
- func ACMEProvider(p acme.Provider) Option
- func CORSConfig(c *cors.Config) Option
- func EnableACME(b bool) Option
- func EnableCORS(b bool) Option
- func EnableTLS(b bool) Option
- func Logger(l logger.Logger) Option
- func Resolver(r resolver.Resolver) Option
- func TLSConfig(t *tls.Config) Option
- func WrapHandler(w Wrapper) Option
- type Options
- type Server
- type Wrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *Options)
func ACMEProvider ¶
func CORSConfig ¶
func EnableACME ¶
func EnableCORS ¶
func WrapHandler ¶
type Options ¶
type Options struct { EnableACME bool EnableCORS bool CORSConfig *cors.Config ACMEProvider acme.Provider EnableTLS bool ACMEHosts []string TLSConfig *tls.Config Resolver resolver.Resolver Wrappers []Wrapper Logger logger.Logger }
func NewOptions ¶
Directories ¶
Path | Synopsis |
---|---|
Package acme abstracts away various ACME libraries
|
Package acme abstracts away various ACME libraries |
autocert
Package autocert is the ACME provider from golang.org/x/crypto/acme/autocert This provider does not take any config.
|
Package autocert is the ACME provider from golang.org/x/crypto/acme/autocert This provider does not take any config. |
Package http provides a http server with features; acme, cors, etc
|
Package http provides a http server with features; acme, cors, etc |
Click to show internal directories.
Click to hide internal directories.