MCPcopy
hub / github.com/google/seesaw / HAStatus

Method HAStatus

engine/ipc.go:155–169  ·  view source on GitHub ↗

HAStatus returns the current HA status from the Seesaw Engine.

(ctx *ipc.Context, status *seesaw.HAStatus)

Source from the content-addressed store, hash-verified

153
154// HAStatus returns the current HA status from the Seesaw Engine.
155func (s *SeesawEngine) HAStatus(ctx *ipc.Context, status *seesaw.HAStatus) error {
156 s.trace("HAStatus", ctx)
157 if ctx == nil {
158 return errContext
159 }
160
161 if !ctx.CanRead() {
162 return errAccess
163 }
164
165 if status != nil {
166 *status = s.engine.haStatus()
167 }
168 return nil
169}
170
171// Healthchecks returns a list of currently configured healthchecks that
172// should be performed by the Seesaw Healthcheck component.

Callers

nothing calls this directly

Calls 3

traceMethod · 0.95
CanReadMethod · 0.80
haStatusMethod · 0.80

Tested by

no test coverage detected