Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GitBranch = "development"
The branch the binary was built from
View Source
var GitCommit = "0"
Hash of the commit the binary was built on
View Source
var GitVersion string
Version tag the commit is on
Functions ¶
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func New ¶
func New() *Component
New creates an instance of the status component, which provides a simple health check endpoint.
func (*Component) RegisterHttpHandlers ¶
func (*Component) SetReady ¶ added in v0.11.0
func (c *Component) SetReady()
SetReady marks the system as ready, causing /status to return 200 OK. Should be called after all components have been started, so readiness probes don't report the system as up before its dependencies (e.g. PDP's OPA service) are initialized.
Click to show internal directories.
Click to hide internal directories.