Documentation
¶
Index ¶
- type Server
- func New(ports config.Ports, handler http.Handler, logger logger.Logger) (Server, error)
- func NewFromConfig(config *config.Http, handler http.Handler, logger logger.Logger) (Server, error)
- func NewWithOverrides(ports config.Ports, cert *certificate.Certificate, handler http.Handler, ...) (Server, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server interface { Address() []string // first address is always HTTP and HTTPS is the second one, done that way as LetsEncrypt uses http for establishing connection Handler() http.Handler OnStart(callback func()) OnStop(callback func()) OnError(callback func(err error)) Start(ctx context.Context, wg *sync.WaitGroup) Stop() Shutdown() }
func NewFromConfig ¶ added in v1.0.5
Click to show internal directories.
Click to hide internal directories.