Documentation ¶
Index ¶
- type CronsModel
- func (o *CronsModel) Cron() gocron.Scheduler
- func (c *CronsModel) Day(fn ...func())
- func (c *CronsModel) DayHour(hour int, fn ...func())
- func (c *CronsModel) DayHourMinute(hour, minute int, fn ...func())
- func (c *CronsModel) Func(spec string, fn ...func())
- func (c *CronsModel) Hour(fn ...func())
- func (c *CronsModel) HourX(x int, fn ...func())
- func (c *CronsModel) Minute(fn ...func())
- func (c *CronsModel) MinuteX(x int, fn ...func())
- func (c *CronsModel) Second(fn ...func())
- func (c *CronsModel) SecondX(x int, fn ...func())
- func (c *CronsModel) Start()
- func (c *CronsModel) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronsModel ¶
type CronsModel struct {
// contains filtered or unexported fields
}
func New ¶
func New() (*CronsModel, error)
func (*CronsModel) Cron ¶
func (o *CronsModel) Cron() gocron.Scheduler
func (*CronsModel) DayHourMinute ¶
func (c *CronsModel) DayHourMinute(hour, minute int, fn ...func())
每天x点x分0秒执行
func (*CronsModel) Func ¶
func (c *CronsModel) Func(spec string, fn ...func())
func (*CronsModel) Start ¶
func (c *CronsModel) Start()
func (*CronsModel) Stop ¶
func (c *CronsModel) Stop() error
Click to show internal directories.
Click to hide internal directories.