Documentation
¶
Index ¶
Constants ¶
View Source
const ( Second = "Second" Minute = "Minute" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CronManage ¶
type CronManage struct {
// contains filtered or unexported fields
}
func NewCronManage ¶
func NewCronManage(mode string, logger *zap.Logger) (*CronManage, error)
func (*CronManage) Entries ¶
func (m *CronManage) Entries() []cron.Entry
func (*CronManage) RegisterFunc ¶
func (m *CronManage) RegisterFunc(frequency string, cmd func()) (int, error)
func (*CronManage) RemoveEntity ¶
func (m *CronManage) RemoveEntity(entityId cron.EntryID)
func (*CronManage) Start ¶
func (m *CronManage) Start()
func (*CronManage) Stop ¶
func (m *CronManage) Stop()
Click to show internal directories.
Click to hide internal directories.