irreparable

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: AGPL-3.0 Imports: 3 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 segmentPath.
	Get(ctx context.Context, segmentPath []byte) (*pb.IrreparableSegment, error)
	// GetLimited number of segments from offset
	GetLimited(ctx context.Context, limit int, offset int64) ([]*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 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