Documentation
¶
Overview ¶
Package httpserver connects a standard HTTP server to the application lifecycle. Any router that implements http.Handler can be used as the server's handler.
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 NewForEnvironment ¶ added in v0.1.1
NewForEnvironment is the default DI provider for environment-aware initializers.
func NewWithLogger ¶ added in v0.1.1
NewWithLogger is the default DI provider for initializers without an environment.
func (*Server) HTTPServer ¶ added in v0.1.1
HTTPServer returns the underlying application's HTTP server.
func (*Server) Logger ¶ added in v0.1.1
Logger returns the logger injected into this lifecycle component.
func (*Server) Start ¶
Start binds the listener before returning, so bind failures are startup errors.
Click to show internal directories.
Click to hide internal directories.