Documentation ¶
Index ¶
- type TaskCtl
- func (t TaskCtl) CanRetry() bool
- func (t TaskCtl) GetError() error
- func (t *TaskCtl) GetRunTime() time.Time
- func (t *TaskCtl) IsExpired() bool
- func (t *TaskCtl) IsZeroRunTime() bool
- func (t *TaskCtl) Retry(err error)
- func (t *TaskCtl) SetError(err error)
- func (t *TaskCtl) SetExpireTime(_t time.Time)
- func (t *TaskCtl) SetRetryCount(c int)
- func (t *TaskCtl) SetRunTime(_t time.Time)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskCtl ¶
type TaskCtl struct { RetryCount int RunTime time.Time ExpireTime time.Time // contains filtered or unexported fields }
func NewTaskCtl ¶
func NewTaskCtl() TaskCtl
func (*TaskCtl) GetRunTime ¶ added in v2.2.0
func (*TaskCtl) IsZeroRunTime ¶ added in v2.2.0
func (*TaskCtl) SetExpireTime ¶ added in v2.4.0
func (*TaskCtl) SetRetryCount ¶
func (*TaskCtl) SetRunTime ¶ added in v2.2.0
Click to show internal directories.
Click to hide internal directories.