Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Error = errs.Class("node tally")
)
Error is a standard error class for this package.
Functions ¶
This section is empty.
Types ¶
type Observer ¶
Observer observes metainfo and adds up tallies for nodes and buckets.
func NewObserver ¶
NewObserver returns an segment loop observer that adds up totals for nodes.
func (*Observer) InlineSegment ¶
func (observer *Observer) InlineSegment(ctx context.Context, segment *segmentloop.Segment) (err error)
InlineSegment is called for each inline segment.
func (*Observer) LoopStarted ¶
LoopStarted is called at each start of a loop.
func (*Observer) RemoteSegment ¶
func (observer *Observer) RemoteSegment(ctx context.Context, segment *segmentloop.Segment) (err error)
RemoteSegment is called for each remote segment.
type Service ¶
Service is the tally service for data stored on each storage node.
architecture: Chore
func New ¶
func New(log *zap.Logger, sdb accounting.StoragenodeAccounting, loop *segmentloop.Service, interval time.Duration) *Service
New creates a new node tally Service.
Click to show internal directories.
Click to hide internal directories.