controller

package
v2.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2022 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

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) CanRetry

func (t TaskCtl) CanRetry() bool

func (TaskCtl) GetError

func (t TaskCtl) GetError() error

func (*TaskCtl) GetRunTime added in v2.2.0

func (t *TaskCtl) GetRunTime() time.Time

func (*TaskCtl) IsExpired added in v2.4.0

func (t *TaskCtl) IsExpired() bool

func (*TaskCtl) IsZeroRunTime added in v2.2.0

func (t *TaskCtl) IsZeroRunTime() bool

func (*TaskCtl) Retry

func (t *TaskCtl) Retry(err error)

func (*TaskCtl) SetError

func (t *TaskCtl) SetError(err error)

func (*TaskCtl) SetExpireTime added in v2.4.0

func (t *TaskCtl) SetExpireTime(_t time.Time)

func (*TaskCtl) SetRetryCount

func (t *TaskCtl) SetRetryCount(c int)

func (*TaskCtl) SetRunTime added in v2.2.0

func (t *TaskCtl) SetRunTime(_t time.Time)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL