Documentation ¶
Index ¶
Constants ¶
View Source
const (
DEFAULT_CRON_INTERVAL = 60 * time.Second // default resolution is 1 monutes
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SCronJobManager ¶
type SCronJobManager struct {
// contains filtered or unexported fields
}
func NewCronJobManager ¶
func NewCronJobManager(interval time.Duration) *SCronJobManager
func (*SCronJobManager) AddJob ¶
func (self *SCronJobManager) AddJob(name string, interval time.Duration, jobFunc func(ctx context.Context, userCred mcclient.TokenCredential))
func (*SCronJobManager) Start ¶
func (self *SCronJobManager) Start()
func (*SCronJobManager) Stop ¶
func (self *SCronJobManager) Stop()
Click to show internal directories.
Click to hide internal directories.