Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRecurringTaskHandler ¶
type IRecurringTaskHandler interface {
// Do is called on constant interval
Do()
}
IRecurringTaskHandler is the interface to implement the recurring task business logic
type ITimeoutTaskHandler ¶
type ITimeoutTaskHandler interface {
// Do is called on constant interval
Do()
}
ITimeoutTaskHandler is the interface to implement the timeout task business logic
type RecurringTask ¶
type RecurringTask struct { service.AbstractService H IRecurringTaskHandler Interval time.Duration // contains filtered or unexported fields }
RecurringTask represents a recurring task
func NewRecurringTask ¶
func NewRecurringTask(h IRecurringTaskHandler, i time.Duration) *RecurringTask
NewRecurringTask creates an instance of RecurringTask
type TimeoutTask ¶
type TimeoutTask struct { service.AbstractService H ITimeoutTaskHandler Duration time.Duration // contains filtered or unexported fields }
TimeoutTask represents a timeout task
func NewTimeoutTask ¶
func NewTimeoutTask(h ITimeoutTaskHandler, d time.Duration) *TimeoutTask
NewTimeoutTask creates an instance of TimeoutTask
Click to show internal directories.
Click to hide internal directories.