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

Function WithInterval

coderd/database/dbrollup/dbrollup.go:39–43  ·  view source on GitHub ↗

WithInterval sets the interval between rollups.

(interval time.Duration)

Source from the content-addressed store, hash-verified

37
38// WithInterval sets the interval between rollups.
39func WithInterval(interval time.Duration) Option {
40 return func(r *Rolluper) {
41 r.interval = interval
42 }
43}
44
45// WithEventChannel sets the event channel to use for rollup events.
46//

Calls

no outgoing calls