Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomServerConfig ¶
type Server ¶
type Server interface {
// Start starts the server and listens for incoming requests
Start()
// Bootstrap initializes the server components
Bootstrap()
// GracefullyShutdown gracefully shuts down the server on interrupt
GracefullyShutdown()
// MountHandlers mounts all the HTTP handlers and routes
MountHandlers()
// MountWorkers mounts all the workers or background jobs
MountWorkers()
// Get Router returns the HTTP router
GetRouter() any
}
func NewHttpServer ¶
func NewHttpServer() Server
func NewHttpServerWithConfig ¶
func NewHttpServerWithConfig(cfg CustomServerConfig) Server
Click to show internal directories.
Click to hide internal directories.