Documentation
¶
Index ¶
- type CronClient
- func (c *CronClient) Add(tmFmt string, fn func()) error
- func (c *CronClient) AddDay(t int, fn func()) error
- func (c *CronClient) AddEvery(d time.Duration, fn func()) error
- func (c *CronClient) AddEveryHour(fn func()) error
- func (c *CronClient) AddHour(t int, fn func()) error
- func (c *CronClient) AddMinute(t int, fn func()) error
- func (c *CronClient) AddWeek(t int, fn func()) error
- func (c *CronClient) Start()
- func (c *CronClient) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronClient ¶
type CronClient struct {
// contains filtered or unexported fields
}
func NewCronClient ¶
func NewCronClient() *CronClient
func (*CronClient) Add ¶
func (c *CronClient) Add(tmFmt string, fn func()) error
func (*CronClient) AddDay ¶
func (c *CronClient) AddDay(t int, fn func()) error
func (*CronClient) AddEveryHour ¶
func (c *CronClient) AddEveryHour(fn func()) error
func (*CronClient) AddHour ¶
func (c *CronClient) AddHour(t int, fn func()) error
func (*CronClient) AddMinute ¶
func (c *CronClient) AddMinute(t int, fn func()) error
func (*CronClient) AddWeek ¶
func (c *CronClient) AddWeek(t int, fn func()) error
func (*CronClient) Start ¶
func (c *CronClient) Start()
func (*CronClient) Stop ¶
func (c *CronClient) Stop()
Click to show internal directories.
Click to hide internal directories.