Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultReadHeaderTimeout is the default timeout for reading request headers DefaultReadHeaderTimeout = 5 * time.Second // DefaultShutdownTimeout is the default timeout for graceful shutdown DefaultShutdownTimeout = 10 * time.Second // DefaultStartupTimeout is the default timeout for server startup DefaultStartupTimeout = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server handles HTTP server lifecycle and configuration
func New ¶
func New( lc fx.Lifecycle, logger logging.Logger, cfg *config.Config, e *echo.Echo, middlewareManager *middleware.Manager, ) *Server
New creates a new server instance with the provided dependencies
Click to show internal directories.
Click to hide internal directories.