Documentation
¶
Overview ¶
Package server hosts the shared HTTP server lifecycle for admin and proxy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseServer ¶
type BaseServer struct {
Name string
Addr string
Router *fiber.App
// contains filtered or unexported fields
}
func NewBaseServer ¶
func NewBaseServer(name, addr string, cfg config.ServerConfig, logger *slog.Logger) *BaseServer
func (*BaseServer) WithRouters ¶
func (s *BaseServer) WithRouters(routers ...router.ServerRouter) *BaseServer
type Server ¶
Server is the lifecycle contract for an HTTP listener.
func NewHTTPServer ¶
func NewHTTPServer( name, addr string, cfg config.ServerConfig, logger *slog.Logger, routers []router.ServerRouter, ) Server
Click to show internal directories.
Click to hide internal directories.