Documentation ¶
Index ¶
- Variables
- type Chore
- type Config
- type ProgressObserver
- func (progress *ProgressObserver) InlineSegment(context.Context, *segmentloop.Segment) error
- func (progress *ProgressObserver) LoopStarted(ctx context.Context, info segmentloop.LoopInfo) (err error)
- func (progress *ProgressObserver) RemoteSegment(context.Context, *segmentloop.Segment) error
- func (progress *ProgressObserver) Report()
- type SegmentSizes
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 segmentloop.MetabaseDB }
Chore runs different verifications on metabase loop.
func New ¶
func New(log *zap.Logger, mdb segmentloop.MetabaseDB, config Config) *Chore
New creates new verification.
type Config ¶
type Config struct { ProgressPrintFrequency int64 Loop segmentloop.Config }
Config contains configuration for all the services.
type ProgressObserver ¶
type ProgressObserver struct { Log *zap.Logger ProgressPrintFrequency int64 RemoteSegmentCount int64 InlineSegmentCount int64 }
ProgressObserver counts and prints progress of metabase loop.
func (*ProgressObserver) InlineSegment ¶
func (progress *ProgressObserver) InlineSegment(context.Context, *segmentloop.Segment) error
InlineSegment implements the Observer interface.
func (*ProgressObserver) LoopStarted ¶
func (progress *ProgressObserver) LoopStarted(ctx context.Context, info segmentloop.LoopInfo) (err error)
LoopStarted is called at each start of a loop.
func (*ProgressObserver) RemoteSegment ¶
func (progress *ProgressObserver) RemoteSegment(context.Context, *segmentloop.Segment) error
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 ¶
func (verify *SegmentSizes) InlineSegment(ctx context.Context, seg *segmentloop.Segment) error
InlineSegment implements the Observer interface.
func (*SegmentSizes) LoopStarted ¶
func (verify *SegmentSizes) LoopStarted(ctx context.Context, info segmentloop.LoopInfo) (err error)
LoopStarted is called at each start of a loop.
func (*SegmentSizes) RemoteSegment ¶
func (verify *SegmentSizes) RemoteSegment(ctx context.Context, seg *segmentloop.Segment) error
RemoteSegment implements the Observer interface.
Click to show internal directories.
Click to hide internal directories.