queue

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tag

type Tag struct {
	Name      string
	Priority  int
	Order     string
	ChunkSize int64
	LastDelay time.Duration
}

Tag is the struct for defining the configuration for a set of groups.

type Tagged

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

Tagged implements sts.FileQueue for managing the ordering of file chunks based on a tagging approach where, based on path patterns, a tag is matched that applies certain behavior

func NewTagged

func NewTagged(tags []*Tag, tagger sts.Translate, grouper sts.Translate) *Tagged

NewTagged creates a new tagged file queue

func (*Tagged) Pop

func (q *Tagged) Pop() sts.Sendable

Pop returns the next sendable chunk in the queue

func (*Tagged) Push

func (q *Tagged) Push(files []sts.Hashed)

Push adds a slice of hashed files to the queue

Jump to

Keyboard shortcuts

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