worker

package
v0.0.0-...-d3bb3ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveWorkerPool

type ArchiveWorkerPool struct {
	// contains filtered or unexported fields
}

ArchiveWorkerPool handles workers that processes tasks archivation

func NewArchiveWorkerPool

func NewArchiveWorkerPool(service *service.Service, workerCount int) *ArchiveWorkerPool

NewArchiveWorkerPool creates new ArchiveWorkerPool

func (*ArchiveWorkerPool) Send

func (w *ArchiveWorkerPool) Send()

Send is an interface for starting up archivation

func (*ArchiveWorkerPool) Start

func (w *ArchiveWorkerPool) Start(ctx context.Context)

Start inits and starts up processor goroutines with error group

func (*ArchiveWorkerPool) Stop

func (w *ArchiveWorkerPool) Stop() error

Stop stops all goroutines gracefully

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL