MCPcopy Create free account
hub / github.com/PostHog/duckgres / ControlPlaneRuntimeTracker

Struct ControlPlaneRuntimeTracker

controlplane/runtime_tracker.go:17–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17type ControlPlaneRuntimeTracker struct {
18 store runtimeInstanceStore
19 id string
20 podName string
21 heartbeatInterval time.Duration
22 now func() time.Time
23
24 draining atomic.Bool
25
26 mu sync.Mutex
27 started bool
28 startedAt time.Time
29 drainingAt *time.Time
30}
31
32func NewControlPlaneRuntimeTracker(store runtimeInstanceStore, id, podName string, heartbeatInterval time.Duration) *ControlPlaneRuntimeTracker {
33 if heartbeatInterval <= 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected