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 segmentPath. Get(ctx context.Context, segmentPath []byte) (*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, lastSeenSegmentPath []byte) ([]*pb.IrreparableSegment, error) // Delete removes irreparable segment info based on segmentPath. Delete(ctx context.Context, segmentPath []byte) error }
DB stores information about repairs that have failed.
type Inspector ¶
type Inspector struct {
// contains filtered or unexported fields
}
Inspector is a gRPC service for inspecting irreparable internals
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
Click to show internal directories.
Click to hide internal directories.