Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartWithGracefulShutdown ¶
func StartWithGracefulShutdown(c context.Context, tm TaskManager) error
Types ¶
type IntervalExecutor ¶
type Task ¶
func IntervalExecutorTask ¶
func IntervalExecutorTask(executor IntervalExecutor, initialDelay time.Duration) Task
type TaskManager ¶
type TaskManager interface { Start(c context.Context, sigCh <-chan os.Signal) error WithTask(Task) TaskManager }
func NewChainedTaskManager ¶
func NewChainedTaskManager() TaskManager
Click to show internal directories.
Click to hide internal directories.