Documentation
¶
Index ¶
- type Clock
- type Cron
- func (c *Cron) At(hour string) *Cron
- func (c *Cron) Clock(clock *Clock) *Cron
- func (c *Cron) Days() *Cron
- func (c *Cron) Each(interval time.Duration) *Cron
- func (c *Cron) Friday() *Cron
- func (c *Cron) In(tz string) *Cron
- func (c *Cron) MaxRetry(maxRetry uint) *Cron
- func (c *Cron) Monday() *Cron
- func (c *Cron) Now() *Cron
- func (c *Cron) Retry(retryInterval time.Duration) *Cron
- func (c *Cron) Saturday() *Cron
- func (c *Cron) Start(action func(time.Time) error, onError func(error))
- func (c *Cron) Stop()
- func (c *Cron) String() string
- func (c *Cron) Sunday() *Cron
- func (c *Cron) Thursday() *Cron
- func (c *Cron) Tuesday() *Cron
- func (c *Cron) Wednesday() *Cron
- func (c *Cron) Weekdays() *Cron
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clock ¶ added in v2.2.2
type Clock struct {
// contains filtered or unexported fields
}
Clock give time
type Cron ¶
type Cron struct {
// contains filtered or unexported fields
}
Cron definition
func (*Cron) Clock ¶ added in v2.2.2
Clock set clock that give current time, mostly for testing purpose
Click to show internal directories.
Click to hide internal directories.