Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Heartbeat ¶
func Heartbeat(ctx context.Context, tick <-chan time.Time, listenAddr string, logger log.StructuredLogger)
Heartbeat kicks off a goroutine that polls the /health endpoint at intervals determined by how frequently events are sent on the tick channel.
func NewEnvironmentHealthTracker ¶
func NewEnvironmentHealthTracker(ctx context.Context, envs []string, s streamStatuser, t time.Duration) func() []domain.EnvironmentHealth
NewEnvironmentHealthTracker creates an EnvironmentHealthTracker
func StreamHealthCheck ¶
func StreamHealthCheck() error
StreamHealthCheck checks if the GripControl stream is available - this is required to enable streaming mode
Types ¶
type EnvironmentHealthTracker ¶
EnvironmentHealthTracker tracks the health of environments
func (EnvironmentHealthTracker) GetEnvHealth ¶
func (e EnvironmentHealthTracker) GetEnvHealth() []domain.EnvironmentHealth
GetEnvHealth is a function that checks the health of all connected environments
Click to show internal directories.
Click to hide internal directories.