Documentation
¶
Index ¶
- func NewTaskError(id uuid.UUID, name string, parentError error) error
- type IdentMap
- type Identifiable
- type Manager
- type Settings
- type TaskError
- type TaskInfo
- func (s *TaskInfo) Active(cancelFunc context.CancelFunc) *TaskInfo
- func (s *TaskInfo) Disable() *TaskInfo
- func (s *TaskInfo) Enable() *TaskInfo
- func (s *TaskInfo) ID() uuid.UUID
- func (s *TaskInfo) Info() task.Info
- func (s *TaskInfo) L(ctx context.Context) *zap.Logger
- func (s *TaskInfo) Name() string
- func (s *TaskInfo) Passive() *TaskInfo
- func (s *TaskInfo) Run(ctx context.Context) error
- func (s *TaskInfo) StateIs(states ...task.State) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Identifiable ¶
type Manager ¶
type Manager interface { Register(tasker task.Tasker, settings Settings) Unregister(tasker task.Tasker) Enable(id uuid.UUID) (err error) Disable(id uuid.UUID) (err error) Run(ctx context.Context, id uuid.UUID) (err error) Stop(ctx context.Context, id uuid.UUID) (err error) StartAll(ctx context.Context) (err error) Get(id uuid.UUID) (taskInfo task.Info, err error) Info() []task.Info Errors() <-chan error Close() }
Click to show internal directories.
Click to hide internal directories.