Documentation ¶
Index ¶
- Variables
- type Observer
- func (observer *Observer) Finish(ctx context.Context) (err error)
- func (observer *Observer) Fork(ctx context.Context) (_ rangedloop.Partial, err error)
- func (observer *Observer) Join(ctx context.Context, partial rangedloop.Partial) (err error)
- func (observer *Observer) SetNow(nowFn func() time.Time)
- func (observer *Observer) Start(ctx context.Context, time time.Time) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Error is a standard error class for this package. Error = errs.Class("node tally") )
Functions ¶
This section is empty.
Types ¶
type Observer ¶
type Observer struct { Node map[metabase.NodeAlias]float64 // contains filtered or unexported fields }
Observer implements node tally ranged loop observer.
func NewObserver ¶
func NewObserver(log *zap.Logger, accounting accounting.StoragenodeAccounting, metabaseDB *metabase.DB) *Observer
NewObserver creates new tally range loop observer.
func (*Observer) Finish ¶ added in v1.78.1
Finish calculates byte*hours from per node storage usage and save tallies to DB.
func (*Observer) Join ¶ added in v1.78.1
Join joins node tally ranged loop partial to main observer updating main per node usage map.
Click to show internal directories.
Click to hide internal directories.