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

Interface Engine

ha/engine_client.go:35–39  ·  view source on GitHub ↗

Engine represents an interface to a Seesaw Engine.

Source from the content-addressed store, hash-verified

33
34// Engine represents an interface to a Seesaw Engine.
35type Engine interface {
36 HAConfig() (*seesaw.HAConfig, error)
37 HAState(spb.HaState) error
38 HAUpdate(seesaw.HAStatus) (bool, error)
39}
40
41// EngineClient implements the Engine interface. It connects to the Seesaw
42// Engine UNIX domain socket specified by Socket.

Callers 37

checkConfigMethod · 0.65
configFunction · 0.65
becomeMasterMethod · 0.65
becomeBackupMethod · 0.65
becomeShutdownMethod · 0.65
reportStatusMethod · 0.65
mainFunction · 0.95
TestRateLimitFunction · 0.45
HAStatusMethod · 0.80
handleOverrideMethod · 0.45
distributeOverrideMethod · 0.45
OverrideBackendMethod · 0.45

Implementers 3

EngineClientha/engine_client.go
DummyEngineha/engine_client.go
SeesawEngineengine/ipc.go

Calls

no outgoing calls

Tested by

no test coverage detected