Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronObject ¶
type CronObject struct {
// contains filtered or unexported fields
}
CronObject - cron object /ᐠ。‸。ᐟ\
func NewCronHandler ¶
func NewCronHandler(callback CronCallback, timerTime time.Duration) *CronObject
NewCronHandler - create new cron
type RunTimeLimitHandler ¶ added in v1.1.2
type RunTimeLimitHandler struct {
// contains filtered or unexported fields
}
RunTimeLimitHandler - func runtime limit handler
func NewRuntimeLimitHandler ¶ added in v1.1.2
func NewRuntimeLimitHandler(timeout time.Duration, runFunc func()) *RunTimeLimitHandler
NewRuntimeLimitHandler - create new func runtime limit handler
func (*RunTimeLimitHandler) Run ¶ added in v1.1.2
func (r *RunTimeLimitHandler) Run() bool
Run - run func & limit runtime. returns: bool: true if time is up
Click to show internal directories.
Click to hide internal directories.