MCPcopy Index your code
hub / github.com/coder/coder / InserterWithClock

Function InserterWithClock

enterprise/coderd/usage/inserter.go:39–43  ·  view source on GitHub ↗

InserterWithClock sets the quartz clock to use for the inserter.

(clock quartz.Clock)

Source from the content-addressed store, hash-verified

37
38// InserterWithClock sets the quartz clock to use for the inserter.
39func InserterWithClock(clock quartz.Clock) InserterOption {
40 return func(c *dbInserter) {
41 c.clock = clock
42 }
43}
44
45// InsertDiscreteUsageEvent implements agplusage.Inserter.
46func (i *dbInserter) InsertDiscreteUsageEvent(ctx context.Context, tx database.Store, event usagetypes.DiscreteEvent) error {

Callers 4

TestInserterFunction · 0.92
TestIntegrationFunction · 0.92
TestPublisherClaimExpiryFunction · 0.92
TestCronFunction · 0.92

Calls

no outgoing calls

Tested by 4

TestInserterFunction · 0.74
TestIntegrationFunction · 0.74
TestPublisherClaimExpiryFunction · 0.74
TestCronFunction · 0.74