archiver

package
v0.0.0-...-5dae8a8 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HTTPUserAgent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
)

Functions

This section is empty.

Types

type Archiver

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

func NewArchiver

func NewArchiver(datadir string, concurrency int, logger *zap.SugaredLogger) *Archiver

func (*Archiver) ActiveJobs

func (a *Archiver) ActiveJobs() []string

func (*Archiver) Add

func (a *Archiver) Add(id string, source string)

func (*Archiver) Concurrency

func (a *Archiver) Concurrency() int

func (*Archiver) InProgress

func (a *Archiver) InProgress(id string) bool

func (*Archiver) QueuedJobs

func (a *Archiver) QueuedJobs() []string

func (*Archiver) Remove

func (a *Archiver) Remove(id string)

func (*Archiver) SetConcurrency

func (a *Archiver) SetConcurrency(n int)

type Job

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

Jump to

Keyboard shortcuts

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