Documentation ¶
Index ¶
- type CronsModel
- func (o *CronsModel) Cron() *cron.Cron
- 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) Job(spec string, job ...cron.Job)
- 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()
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
func (*CronsModel) Cron ¶
func (o *CronsModel) Cron() *cron.Cron
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) Job ¶
func (c *CronsModel) Job(spec string, job ...cron.Job)
func (*CronsModel) Start ¶
func (c *CronsModel) Start()
func (*CronsModel) Stop ¶
func (c *CronsModel) Stop()
Click to show internal directories.
Click to hide internal directories.