Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseTask ¶
type BaseTask struct{}
func (BaseTask) RunLoopWithLock ¶ added in v1.6.0
func (b BaseTask) RunLoopWithLock(handlerFunc func(), opts ...RunLoopOption)
type RunLoopOption ¶ added in v1.6.0
type RunLoopOption func(arg *LoopArg)
func WithInterval ¶ added in v1.6.0
func WithInterval(interval time.Duration) RunLoopOption
func WithLockConf ¶ added in v1.6.0
func WithLockConf(confName string) RunLoopOption
func WithLockInterval ¶ added in v1.6.0
func WithLockInterval(interval time.Duration) RunLoopOption
func WithLockKey ¶ added in v1.6.0
func WithLockKey(key string) RunLoopOption
func WithLockTTL ¶ added in v1.6.0
func WithLockTTL(ttl int64) RunLoopOption
Click to show internal directories.
Click to hide internal directories.