background

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveBackroundJob

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

ArchiveBackroundJob inits archivation process with given ticker duration

func NewArchiveBackroundJob

func NewArchiveBackroundJob(workerPool *worker.ArchiveWorkerPool, duration time.Duration) *ArchiveBackroundJob

NewArchiveBackroundJob constructs new ArchiveBackroundJob

func (*ArchiveBackroundJob) Start

func (bgJob *ArchiveBackroundJob) Start(ctx context.Context)

Start starts ticker checking in another goroutine

func (*ArchiveBackroundJob) Stop

func (bgJob *ArchiveBackroundJob) Stop() error

Stop stops ticker by context cancelling

Jump to

Keyboard shortcuts

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