Documentation
¶
Overview ¶
Package httpserver implements the core HTTP server
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPServerConfig ¶
type HTTPServerConfig struct {
ListenAddr string
MetricsAddr string
AdminAddr string
InternalAddr string
EnablePprof bool
Log *httplog.Logger
DrainDuration time.Duration
GracefulShutdownDuration time.Duration
ReadTimeout time.Duration
WriteTimeout time.Duration
// Admin API auth
AdminBasicUser string
AdminPasswordBcrypt string
AdminAuthDisabled bool
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewHTTPServer ¶
func NewHTTPServer(cfg *HTTPServerConfig, appHandler *ports.BuilderHubHandler, adminHandler *ports.AdminHandler) (srv *Server, err error)
func (*Server) GetAdminRouter ¶ added in v0.2.0
func (*Server) GetInternalRouter ¶ added in v0.2.0
func (*Server) LoadMockResponses ¶
func (*Server) RunInBackground ¶
func (srv *Server) RunInBackground()
Click to show internal directories.
Click to hide internal directories.