Documentation
¶
Overview ¶
Package server provides HTTP server setup and lifecycle management for the application.
Index ¶
Constants ¶
View Source
const ( // StartupTimeout is the timeout for server startup StartupTimeout = 5 * time.Second // ShutdownTimeout is the timeout for graceful shutdown ShutdownTimeout = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deps ¶ added in v0.1.5
type Deps struct {
fx.In
Lifecycle fx.Lifecycle
Logger logging.Logger
Config *config.Config
Echo *echo.Echo
AssetServer web.AssetServer
}
Deps contains the dependencies for creating a server
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server handles HTTP server lifecycle and configuration
Click to show internal directories.
Click to hide internal directories.