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

Function PublisherWithClock

enterprise/coderd/usage/publisher.go:104–108  ·  view source on GitHub ↗

PublisherWithClock sets the clock to use for publishing usage events.

(clock quartz.Clock)

Source from the content-addressed store, hash-verified

102
103// PublisherWithClock sets the clock to use for publishing usage events.
104func PublisherWithClock(clock quartz.Clock) TallymanPublisherOption {
105 return func(p *tallymanPublisher) {
106 p.clock = clock
107 }
108}
109
110// PublisherWithIngestURL sets the ingest URL to use for publishing usage
111// events.

Callers 6

TestIntegrationFunction · 0.92
TestPublisherClaimExpiryFunction · 0.92

Calls

no outgoing calls

Tested by 6

TestIntegrationFunction · 0.74
TestPublisherClaimExpiryFunction · 0.74