Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // CheckInterval is the frequency in which new ready-to-check // tracked jobs are queried. CheckInterval = time.Second * 15 )
Functions ¶
This section is empty.
Types ¶
type Tracker ¶
type Tracker struct {
// contains filtered or unexported fields
}
Tracker tracks Powergate jobs to their final status. Tracked jobs corresponds to Archives or Retrievals. Depending of the case, is what logic is applied when the Job reach a final status.
func New ¶
func New( colls *mdb.Collections, buckets *tdb.Buckets, pgClient *powc.Client, internalSession string, jobPollIntervalSlow time.Duration, jobPollIntervalFast time.Duration, jfe chan<- archive.JobEvent, ) (*Tracker, error)
New returns a *Tracker.
Click to show internal directories.
Click to hide internal directories.