Versions in this module Expand all Collapse all v0 v0.10.0 Jul 10, 2020 Changes in this version + type Collector interface + SetCounter func(ObjectCounter) + SetIterator func(iter meta.Iterator) + Start func(ctx context.Context) + UpdateContainer func(cid refs.CID, size uint64, op SpaceOp) + UpdateSpaceUsage func() + func New(p Params) (Collector, error) + type CounterSetter interface + SetCounter func(ObjectCounter) + type ObjectCounter interface + ObjectsCount func() (uint64, error) + type Params struct + Interval time.Duration + Logger *zap.Logger + MetricsStore core.Bucket + Options []string + type SpaceOp int + const AddSpace + const RemSpace