queue

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Error = errs.Class("queue error")

Error is a standard error class for this package.

Functions

This section is empty.

Types

type RepairQueue

type RepairQueue interface {
	// Insert adds an injured segment.
	Insert(ctx context.Context, s *pb.InjuredSegment, numHealthy int) error
	// Select gets an injured segment.
	Select(ctx context.Context) (*pb.InjuredSegment, error)
	// Delete removes an injured segment.
	Delete(ctx context.Context, s *pb.InjuredSegment) error
	// SelectN lists limit amount of injured segments.
	SelectN(ctx context.Context, limit int) ([]pb.InjuredSegment, error)
	// Count counts the number of segments in the repair queue.
	Count(ctx context.Context) (count int, err error)
}

RepairQueue implements queueing for segments that need repairing. Implementation can be found at satellite/satellitedb/repairqueue.go.

architecture: Database

Jump to

Keyboard shortcuts

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