Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { // Start starts all registered background works. Start() // Stop starts all registered background works. Stop() // RegisterWork registers a background work against the Manager RegisterWorks(works ...Work) error }
Manager allows multiple background Works to be registered and started/stopped together.
func NewManager ¶
func NewManager() Manager
NewManager creates a new instance of Manager with registered background works.
Click to show internal directories.
Click to hide internal directories.