Documentation ¶
Index ¶
- Variables
- type Chore
- type Config
- type ProgressObserver
- func (progress *ProgressObserver) InlineSegment(context.Context, *metaloop.Segment) error
- func (progress *ProgressObserver) LoopStarted(ctx context.Context, info metaloop.LoopInfo) (err error)
- func (progress *ProgressObserver) Object(context.Context, *metaloop.Object) error
- func (progress *ProgressObserver) RemoteSegment(context.Context, *metaloop.Segment) error
- func (progress *ProgressObserver) Report()
- type SegmentSizes
- func (verify *SegmentSizes) InlineSegment(ctx context.Context, seg *metaloop.Segment) error
- func (verify *SegmentSizes) LoopStarted(ctx context.Context, info metaloop.LoopInfo) (err error)
- func (verify *SegmentSizes) Object(ctx context.Context, obj *metaloop.Object) error
- func (verify *SegmentSizes) RemoteSegment(ctx context.Context, seg *metaloop.Segment) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Error = errs.Class("verify")
Error is the default error class for the package.
Functions ¶
This section is empty.
Types ¶
type Chore ¶
type Chore struct { Log *zap.Logger Config Config DB metaloop.MetabaseDB }
Chore runs different verifications on metabase loop.
type ProgressObserver ¶
type ProgressObserver struct { Log *zap.Logger ProgressPrintFrequency int64 ObjectCount int64 RemoteSegmentCount int64 InlineSegmentCount int64 }
ProgressObserver counts and prints progress of metabase loop.
func (*ProgressObserver) InlineSegment ¶
InlineSegment implements the Observer interface.
func (*ProgressObserver) LoopStarted ¶
func (progress *ProgressObserver) LoopStarted(ctx context.Context, info metaloop.LoopInfo) (err error)
LoopStarted is called at each start of a loop.
func (*ProgressObserver) RemoteSegment ¶
RemoteSegment implements the Observer interface.
func (*ProgressObserver) Report ¶
func (progress *ProgressObserver) Report()
Report reports the current progress.
type SegmentSizes ¶
SegmentSizes verifies segments table plain_offset and plain_size.
func (*SegmentSizes) InlineSegment ¶
InlineSegment implements the Observer interface.
func (*SegmentSizes) LoopStarted ¶
LoopStarted is called at each start of a loop.
func (*SegmentSizes) RemoteSegment ¶
RemoteSegment implements the Observer interface.
Click to show internal directories.
Click to hide internal directories.