Documentation ¶
Index ¶
- func NewManager(config jobs.Config, repo jobs.Repository) jobs.Manager
- func NewRepository(repo storage.Repository) jobs.Repository
- type BaseTask
- func (b *BaseTask) ParseJobID(taskTypeName string, kwargs map[string]interface{}) error
- func (b *BaseTask) UpdateJob(accountID identity.DID, taskTypeName string, err error) error
- func (b *BaseTask) UpdateJobWithValue(accountID identity.DID, taskTypeName string, err error, txValue *jobs.JobValue) error
- type Bootstrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewManager ¶
NewManager returns a JobManager implementation.
func NewRepository ¶
func NewRepository(repo storage.Repository) jobs.Repository
NewRepository registers the the Job model and returns the an implementation of the Repository.
Types ¶
type BaseTask ¶
BaseTask holds the required details and helper functions for tasks to update jobs. should be embedded into the task
func (*BaseTask) ParseJobID ¶
ParseJobID parses JobID.
type Bootstrapper ¶
type Bootstrapper struct{}
Bootstrapper implements bootstrap.Bootstrapper.
func (Bootstrapper) Bootstrap ¶
func (b Bootstrapper) Bootstrap(ctx map[string]interface{}) error
Bootstrap adds transaction.Repository into context.
Click to show internal directories.
Click to hide internal directories.