Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CronScheduler ¶
type CronScheduler struct {
// contains filtered or unexported fields
}
func (*CronScheduler) StartAsync ¶
func (c *CronScheduler) StartAsync(cron string, onExecuting func()) error
func (*CronScheduler) Stop ¶
func (c *CronScheduler) Stop() error
type IScheduler ¶
func NewCronScheduler ¶
func NewCronScheduler() IScheduler
func NewRedisScheduler ¶
func NewRedisScheduler(addr []string, user, pass, masterName string, db int) IScheduler
type RedisScheduler ¶
type RedisScheduler struct {
// contains filtered or unexported fields
}
func (*RedisScheduler) StartAsync ¶
func (r *RedisScheduler) StartAsync(cron string, onExecuting func()) error
func (*RedisScheduler) Stop ¶
func (r *RedisScheduler) Stop() error
Click to show internal directories.
Click to hide internal directories.