Documentation ¶
Index ¶
- func Index(c echo.Context) error
- func MonitorServer(serverConfig MonitorServerConfig, assetConfig assets.Config, ...) context.Context
- func StaticGet(root fs.FS, mimeType string) echo.HandlerFunc
- func StaticHead(root fs.FS, mimeType string) echo.HandlerFunc
- type Liveness
- type LivenessResponse
- type MonitorServerConfig
- type ReadinessResponse
- type StartedResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MonitorServer ¶
func MonitorServer(serverConfig MonitorServerConfig, assetConfig assets.Config, templateGlobals pongo2.Context, configFns ...func(e *echo.Echo) error) context.Context
MonitorServer starts the monitoring web service
func StaticHead ¶
Types ¶
type Liveness ¶
Liveness implements the interface to wire up a Liveness check from another subsystem
type LivenessResponse ¶
LivenessResponse is a common type for responding to K8S style liveness checks.
type MonitorServerConfig ¶
type MonitorServerConfig struct { // Ctx should be a context object which can signal server shutdown. If nil, not used. Ctx context.Context `kong:"-"` Liveness Liveness `kong:"-"` Prefix string `help:"Prefix the API is bing served under, if any"` Host string `help:"Host the API should be served on" default:""` Port int `help:"Port to serve on" default:"8080"` }
type ReadinessResponse ¶
ReadinessResponse is a common type for responding to K8S style readiness checks.
type StartedResponse ¶
StartedResonse is a common type for responding to K8S style startup checks.
Click to show internal directories.
Click to hide internal directories.