MCPcopy
hub / github.com/dgraph-io/dgraph / OffsetTimer

Interface OffsetTimer

graphql/schema/response.go:319–322  ·  view source on GitHub ↗

An OffsetTimer is used to fill out an OffsetDuration. Start starts the timer and calculates the offset. Stop calculates the duration.

Source from the content-addressed store, hash-verified

317// An OffsetTimer is used to fill out an OffsetDuration. Start starts the timer
318// and calculates the offset. Stop calculates the duration.
319type OffsetTimer interface {
320 Start()
321 Stop()
322}
323
324type timerFactory struct {
325 offsetFrom time.Time

Callers 14

jepsenServeFunction · 0.65
OpenFunction · 0.65
doSendMessageMethod · 0.65
alterMethod · 0.65
doQueryMethod · 0.65
CommitOrAbortMethod · 0.65
checkQuorumMethod · 0.65
ResolveMethod · 0.65
rewriteAndExecuteMethod · 0.65
ResolveMethod · 0.65
rewriteAndExecuteMethod · 0.65

Implementers 2

LocalClusterdgraphtest/local_cluster.go
offsetTimergraphql/schema/response.go

Calls

no outgoing calls

Tested by

no test coverage detected