Documentation
¶
Index ¶
- Constants
- func Disable(name TaskName)
- func Enable(name TaskName) error
- func Gron(ops ...Option) error
- func Remove(name TaskName)
- func Subscribe() <-chan Event
- type Event
- type Option
- func At(ts string) Option
- func Do(fn interface{}) Option
- func Every(n uint) Option
- func Friday() Option
- func Hour() Option
- func Hours() Option
- func Minute() Option
- func Minutes() Option
- func Monday() Option
- func Name(name string) Option
- func Saturday() Option
- func Second() Option
- func Seconds() Option
- func Sunday() Option
- func Thursday() Option
- func Tuesday() Option
- func Wednesday() Option
- type Task
- type TaskName
Constants ¶
View Source
const ( // Enabled emitted when a task is enabled Enabled etype = iota // Disabled emitted when a task has been disabled Disabled // Running emitted when a task is starting Running // Finished emitted when a task has finished successful Finished // Failed emitted when a task has failed Failed )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
Option is a struct for friendly APIs See also: https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis
Click to show internal directories.
Click to hide internal directories.