NagOptions

NagOptions configures a nag.

On this page

NagOptions configures a nag.

type NagOptions struct {
	ID      string
	Every   int
	OrEvery time.Duration
}

Fields#

ID#

ID string

ID names the nag; state is kept per ID and target set.

Every#

Every int

Every makes the nag due once it has been counted this many runs (one run per process) since it was last shown.

OrEvery#

OrEvery time.Duration

OrEvery makes the nag due once this much time has passed since it was last shown, regardless of runs. Zero disables the clause. See ParseISODuration for ISO-8601 input.