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 Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue implements the RepairQueue interface
func NewQueue ¶
NewQueue returns a pointer to a new Queue instance with an initialized connection to Redis
type RepairQueue ¶
type RepairQueue interface { // Enqueue adds an injured segment. Enqueue(ctx context.Context, qi *pb.InjuredSegment) error // Dequeue removes an injured segment. Dequeue(ctx context.Context) (pb.InjuredSegment, error) // Peekqueue lists limit amount of injured segments. Peekqueue(ctx context.Context, limit int) ([]pb.InjuredSegment, error) }
RepairQueue implements queueing for segments that need repairing.
Click to show internal directories.
Click to hide internal directories.