BatcherWithStore sets the store to use for storing stats.
(store database.Store)
| 58 | |
| 59 | // BatcherWithStore sets the store to use for storing stats. |
| 60 | func 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. |
| 67 | func BatcherWithBatchSize(size int) BatcherOption { |
no outgoing calls