MCPcopy Create free account
hub / github.com/Shopify/goose / StateTracker

Interface StateTracker

statetracker/tracker.go:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11var log = logger.New("stateTracker")
12
13type StateTracker interface {
14 Get() interface{}
15 Set(interface{}) bool
16
17 // The time that the StateTracker has spent being "previous"
18 // If already "desired", returns 0
19 Duration(previous interface{}, desired interface{}) time.Duration
20 Wait(ctx context.Context, desired interface{}) bool
21
22 NewListener() <-chan *Notification
23 RemoveListener(listener <-chan *Notification)
24}
25
26type stateTracker struct {
27 cond *sync.Cond

Callers 23

Int63Method · 0.65
CountMethod · 0.65
DistributionMethod · 0.65
GaugeMethod · 0.65
HistogramMethod · 0.65
SetMethod · 0.65
TimingMethod · 0.65
StartMethod · 0.65
TestStateTracker_SetFunction · 0.65
TestStateTracker_WaitFunction · 0.65
FinishMethod · 0.65

Implementers 1

stateTrackerstatetracker/tracker.go

Calls

no outgoing calls

Tested by

no test coverage detected