Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRootHandler ¶
func NewRootHandler(deps RootHandlerDeps) http.Handler
Types ¶
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
func NewHTTPServer ¶
func NewHTTPServer(deps HTTPServerDeps) *HTTPServer
NewHTTPServer constructor factory for general use *http.Server.
type HTTPServerDeps ¶
type HTTPServerDeps struct { dig.In RootLogger *slog.Logger // config Port int `name:"config.httpServer.port"` IdleTimeout time.Duration `name:"config.httpServer.idleTimeout"` ReadHeaderTimeout time.Duration `name:"config.httpServer.readHeaderTimeout"` ReadTimeout time.Duration `name:"config.httpServer.readTimeout"` WriteTimeout time.Duration `name:"config.httpServer.writeTimeout"` Handler http.Handler // services *services.ShutdownHooks }
Click to show internal directories.
Click to hide internal directories.