Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Port int `yaml:"port"` EnableAccessLogs bool `yaml:"enable-access-logs"` EnableHealthEndpoint bool `yaml:"enable-health-endpoint"` }
Config http server configuration
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
HTTPServer application server HTTP server uses labstack/echo
func (*HTTPServer) SetOnStartCallback ¶
func (h *HTTPServer) SetOnStartCallback(cb func(*echo.Echo))
SetOnStartCallback register a startup callback just before listening to the configured port
func (*HTTPServer) Start ¶
func (h *HTTPServer) Start()
Start the HTTP server & run onStartCallback callback if defined
Click to show internal directories.
Click to hide internal directories.