irreparable

package
v1.13.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	// IncrementRepairAttempts increments the repair attempts.
	IncrementRepairAttempts(ctx context.Context, segmentInfo *pb.IrreparableSegment) error
	// Get returns irreparable segment info based on segmentKey.
	Get(ctx context.Context, segmentKey metabase.SegmentKey) (*pb.IrreparableSegment, error)
	// GetLimited returns a list of irreparable segment info starting after the last segment info we retrieved
	GetLimited(ctx context.Context, limit int, lastSeenSegmentKey metabase.SegmentKey) ([]*pb.IrreparableSegment, error)
	// Delete removes irreparable segment info based on segmentKey.
	Delete(ctx context.Context, segmentKey metabase.SegmentKey) error
}

DB stores information about repairs that have failed.

architecture: Database

type Inspector

type Inspector struct {
	// contains filtered or unexported fields
}

Inspector is a RPC service for inspecting irreparable internals

architecture: Endpoint

func NewInspector

func NewInspector(irrdb DB) *Inspector

NewInspector creates an Inspector.

func (*Inspector) ListIrreparableSegments

func (srv *Inspector) ListIrreparableSegments(ctx context.Context, req *pb.ListIrreparableSegmentsRequest) (_ *pb.ListIrreparableSegmentsResponse, err error)

ListIrreparableSegments returns a number of irreparable segments by limit and offset.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL