Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶ added in v0.0.3
type Dispatcher struct {
// contains filtered or unexported fields
}
func NewDispatcher ¶ added in v0.0.3
func NewDispatcher(worker Worker, maxWorkers int, queueSize int) *Dispatcher
func (*Dispatcher) AddJob ¶ added in v0.0.3
func (d *Dispatcher) AddJob(job *Job)
func (*Dispatcher) AddJobs ¶ added in v0.0.3
func (d *Dispatcher) AddJobs(jobs []*Job)
func (*Dispatcher) Start ¶ added in v0.0.3
func (d *Dispatcher) Start(ctx context.Context)
func (*Dispatcher) Wait ¶ added in v0.0.3
func (d *Dispatcher) Wait()
type JobManager ¶ added in v0.0.3
type JobManager struct { CompletedDirectoryPath string IncompleteDirectoryPath string // contains filtered or unexported fields }
func NewJobManager ¶ added in v0.0.3
func NewJobManager(logger logging.Logger, conf *config.Configuration, drive *gdrive.DriveService) (*JobManager, error)
func (*JobManager) CreateJob ¶ added in v0.0.3
func (jm *JobManager) CreateJob(driveId string) error
func (*JobManager) FinishJob ¶ added in v0.0.3
func (jm *JobManager) FinishJob(job *Job) error
func (*JobManager) Run ¶ added in v0.0.3
func (jm *JobManager) Run() error
func (*JobManager) RunJob ¶ added in v0.0.3
func (jm *JobManager) RunJob(job *Job)
Click to show internal directories.
Click to hide internal directories.