Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is configured by the caller with the Option functions.
type Option ¶
Option is used to configure the HTTP server.
func WithConfigProvider ¶
func WithConfigProvider(provider func() (*config.HTTPServer, error)) Option
WithConfigProvider sets the provider for the config.HTTPServer.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server handles requests via the Hypertext Transfer Protocol (HTTP) and sends back responses. The Server must be allocated using New since the zero value for Server is not valid configuration.
func (*Server) Run ¶
func (server *Server) Run(commonMiddleware []middleware.Middleware, endpointHandlers []api.HTTPEndpointHandler, readyCallback func()) error
Run configures and starts an HTTP server. After the HTTP server is bound to its IP and port, it invokes the callback function. This function blocks as long as it is serving HTTP.
Click to show internal directories.
Click to hide internal directories.