Documentation
¶
Index ¶
- Constants
- func Accept(uuid string)
- func Done(uuid string) time.Duration
- func Wait(ctx context.Context)
- type DayAt
- type Func
- type Routine
- func (r *Routine) Count(count int64) *Routine
- func (r *Routine) EveryDayAt(hour int, min int, location *time.Location) *Routine
- func (r *Routine) Go(delay ...time.Duration) error
- func (r *Routine) Repeat(duration time.Duration) *Routine
- func (r *Routine) RepeatByPassFail(passDuration time.Duration, failDurtaion time.Duration) *Routine
Constants ¶
View Source
const (
Stop time.Duration = -1
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Routine ¶
type Routine struct {
// contains filtered or unexported fields
}
func NewRoutine ¶
func (*Routine) Count ¶
Count count is the number of times you want to be executed, 0 means unlimited
func (*Routine) EveryDayAt ¶
EveryDayAt represents the time of day you want to be executed
func (*Routine) Go ¶
Go delay represents the time to delay the first execution. if the delay parameter is not given, it means execution according to routine schedule.
func (*Routine) RepeatByPassFail ¶
RepeatByPassFail passDuration represents the time interval between each successful execution, failDurtaion represents the time interval between each failed execution
Click to show internal directories.
Click to hide internal directories.