Documentation ¶
Index ¶
- type Cron
- func (c *Cron) At(hour string) *Cron
- func (c *Cron) Days() *Cron
- func (c *Cron) Each(interval time.Duration) *Cron
- func (c *Cron) Exclusive(semaphoreApp Semaphore, name string, timeout 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) OnError(onError func(error)) *Cron
- func (c *Cron) OnSignal(signal os.Signal) *Cron
- func (c *Cron) Retry(retryInterval time.Duration) *Cron
- func (c *Cron) Saturday() *Cron
- func (c *Cron) Shutdown()
- func (c *Cron) Start(action func(context.Context) error, done <-chan struct{})
- 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
- type Semaphore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cron ¶
type Cron struct {
// contains filtered or unexported fields
}
Cron definition
func (*Cron) Exclusive ¶ added in v4.6.0
Exclusive runs cron in an exclusive manner with a distributed lock on Redis
Click to show internal directories.
Click to hide internal directories.