after

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrMissingDurationsCode = 1 << iota
	ErrMissingCommandCode   = 1 << iota
	ErrMinMaxDuration       = 1 << iota
)
View Source
const DebugDisableValue = "0"

DebugDisableValue is special value to disable debug output

View Source
const DebugEnvironmentVariable = "DEBUG"

DebugEnvironmentVariable is environmental variable to control debug output

View Source
const MaxDuration = time.Minute

MaxDuration is maximum duration allowed

View Source
const MinDuration = time.Millisecond

MinDuration is minimum duration allowed

View Source
const RepeatPrefix = "*/"

RepeatPrefix is prefix for repeating durations

Variables

View Source
var (
	ErrMissingDurations = err.New(ErrMissingDurationsCode, "missing valid duration(s)")
	ErrMissingCommand   = err.New(ErrMissingCommandCode, "missing command")
)

ErrMissingDurations is error message when there are no durations

Functions

func ErrMaxDuration added in v0.0.4

func ErrMaxDuration(spec string, got time.Duration) *err.Err

func ErrMinDuration added in v0.0.4

func ErrMinDuration(spec string, got time.Duration) *err.Err

func ProduceDurations added in v0.0.2

func ProduceDurations(spec string) map[time.Duration]bool

ProduceDurations produce durations from strings like "<d>", "<d>,<d>", "*/<d>" and its combinations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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