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 /α qβΈο½‘α\
func NewCronHandler ΒΆ
func NewCronHandler(callback CronCallback, timerTime time.Duration) *CronObject
NewCronHandler - create new cron
func (*CronObject) IsActive ΒΆ added in v1.5.0
func (c *CronObject) IsActive() bool
IsActive - check cron is not paused & is not stopped
func (*CronObject) IsPaused ΒΆ added in v1.4.0
func (c *CronObject) IsPaused() bool
IsPaused - check cron is paused status
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.