Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFileRead means file read error. ErrFileRead = errors.New("worker: file read error") // ErrYrScan means yr scan error. ErrYrScan = errors.New("worker: yr scan error") )
Functions ¶
func MatchesToString ¶
func MatchesToString(matches yr.MatchRules) []string
MatchesToString returns a slice string from given yr.MatcheRules.
Types ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker represents a job worker. isExpired is optimisation for if max age check is disabled. blkSz unit is byte. expiry unit is day.
Click to show internal directories.
Click to hide internal directories.