Documentation ¶
Overview ¶
Package live provides live accounting functionality. That is, it keeps track of deltas in the amount of storage used by each project relative to the last tally operation (see satellite/accounting/tally).
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // Error is the default error class for live-accounting. Error = errs.Class("live-accounting") )
Functions ¶
func NewCache ¶ added in v0.24.0
NewCache creates a new accounting.Cache instance using the type specified backend in the provided config.
The cache instance may be returned despite of returning the accounting.ErrSystemOrNetError because some backends allows to reconnect on each operation if the connection was not established or it was disconnected, which is what it could happen at the moment to instance it and the cache will work one the backend system will be reachable later on. For this reason, the components that uses the cache should operate despite the backend is not responding successfully although their service is degraded.