Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScheduleFunc ¶
ScheduleFunc takes a cron-like expression, and a callback function to execute on a schedule. It will run indefinitely, or until there is an error. If there is an error, it will be returned. This function is synchronous, and will block.
The `expr` parameter is the cron-like expression (we're using github.com/gorhill/cronexpr). The `quit` parameter is a channel that can be sent any int that will break the loop. The `fn` parameter is a callback function that will be called each scheduled interval.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.