Documentation ¶
Index ¶
- type Mongo
- func (m *Mongo) CollectMetrics(ctx context.Context) error
- func (m *Mongo) CreateTask(ctx context.Context, task *stepper.Task) error
- func (m *Mongo) FailTask(ctx context.Context, task *stepper.Task, handlerErr error, ...) error
- func (m *Mongo) FindNextJob(ctx context.Context, statuses []string) (*stepper.Job, error)
- func (m *Mongo) FindNextTask(ctx context.Context, statuses []string) (*stepper.Task, error)
- func (m *Mongo) GetRelatedTask(ctx context.Context, task *stepper.Task) (*stepper.Task, error)
- func (m *Mongo) GetUnreleasedJobChildren(ctx context.Context, jobId string) (*stepper.Task, error)
- func (m *Mongo) GetUnreleasedTaskChildren(ctx context.Context, forTask *stepper.Task) (*stepper.Task, error)
- func (m *Mongo) Init(ctx context.Context) error
- func (m *Mongo) RegisterJob(ctx context.Context, cfg *stepper.JobConfig) error
- func (m *Mongo) Release(ctx context.Context, job *stepper.Job, nextTimeLaunch time.Time) error
- func (m *Mongo) ReleaseTask(ctx context.Context, task *stepper.Task) error
- func (m *Mongo) SetState(ctx context.Context, task *stepper.Task, state []byte) error
- func (m *Mongo) WaitForSubtasks(ctx context.Context, job *stepper.Job) error
- func (m *Mongo) WaitTaskForSubtasks(ctx context.Context, task *stepper.Task) error
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
func NewMongoWithDb ¶
func (*Mongo) CollectMetrics ¶ added in v0.0.5
func (*Mongo) CreateTask ¶
func (*Mongo) FindNextJob ¶
func (*Mongo) FindNextTask ¶
func (*Mongo) GetRelatedTask ¶
func (*Mongo) GetUnreleasedJobChildren ¶
func (*Mongo) GetUnreleasedTaskChildren ¶
func (*Mongo) RegisterJob ¶
func (*Mongo) ReleaseTask ¶
func (*Mongo) WaitForSubtasks ¶
type Task ¶
type Task struct { ID string `bson:"id"` CustomId string `bson:"custom_id"` Name string `bson:"name"` Data []byte `bson:"data"` JobId string `bson:"jobId"` Parent string `bson:"parent"` LaunchAt time.Time `bson:"launchAt"` Status string `bson:"status"` LockAt *time.Time `bson:"lock_at"` State []byte `bson:"state"` MiddlewaresState map[string][]byte `bson:"middlewares_state"` }
Click to show internal directories.
Click to hide internal directories.