Discover Packages
storj.io/storj
satellite
accounting
reportedrollup
package
Version:
v1.9.5
Opens a new window with list of versions in this module.
Published: Jul 28, 2020
License: AGPL-3.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Chore for flushing reported serials to the database as rollups.
architecture: Chore
NewChore creates new chore for flushing the reported serials to the database as rollups.
Close stops the reported rollups chore.
Run starts the reported rollups chore.
RunOnce finds expired bandwidth as of 'now' and inserts rollups into the appropriate tables.
type Config struct {
Interval time .Duration `help:"how often to flush the reported serial rollups to the database" default:"5m"`
QueueBatchSize int `help:"default queue batch size" default:"10000"`
}
Config is a configuration struct for the Chore.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.