download

package
v0.0.0-...-c8b2685 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Package download downloads and archives web pages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	PageQ chan *feed.Item
	// contains filtered or unexported fields
}

Agent is the nexus of download activity.

func NewAgent

func NewAgent(cnt int) (*Agent, error)

NewAgent creates an Agent with the given number of workers. The returned Agent is inactive initially.

func (*Agent) IsActive

func (ag *Agent) IsActive() bool

IsActive returns the status of the Agent.

func (*Agent) Start

func (ag *Agent) Start()

Start creates the worker goroutines and sets the Agent to active.

func (*Agent) Stop

func (ag *Agent) Stop()

Stop sets the Agent to inactive.

Jump to

Keyboard shortcuts

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