Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartCron ¶ added in v0.0.5
func StartCron(quit chan bool, rp *redis.Pool, name string, interval time.Duration, cronFunc Function)
StartCron calls the passed in function every minute, making sure it acquires a lock so that only one process is running at once. Note that across processes crons may be called more often than duration as there is no inter-process coordination of cron fires. (this might be a worthy addition)
Types ¶
Click to show internal directories.
Click to hide internal directories.