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

Function BatcherWithStore

coderd/workspacestats/batcher.go:60–64  ·  view source on GitHub ↗

BatcherWithStore sets the store to use for storing stats.

(store database.Store)

Source from the content-addressed store, hash-verified

58
59// BatcherWithStore sets the store to use for storing stats.
60func BatcherWithStore(store database.Store) BatcherOption {
61 return func(b *DBBatcher) {
62 b.store = store
63 }
64}
65
66// BatcherWithBatchSize sets the number of stats to store in a batch.
67func BatcherWithBatchSize(size int) BatcherOption {

Callers 7

TestDeploymentInsightsFunction · 0.92
TestAgentStatsFunction · 0.92
NewOptionsFunction · 0.92
ServerMethod · 0.92
TestBatchStatsFunction · 0.85

Calls

no outgoing calls

Tested by 5

TestDeploymentInsightsFunction · 0.74
TestAgentStatsFunction · 0.74
TestBatchStatsFunction · 0.68