wget

package
v0.0.0-...-90b4687 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ver = "gowget/1.0.0"
)

Variables

This section is empty.

Functions

func New

func New() *gowget

Types

type DefaultWork

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

func NewDefaultWork

func NewDefaultWork(f func()) *DefaultWork

func (*DefaultWork) Process

func (dw *DefaultWork) Process()

type Work

type Work interface {
	Process()
}

type WorkQueue

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

func NewWorkQueue

func NewWorkQueue() *WorkQueue

func (*WorkQueue) AddTask

func (wq *WorkQueue) AddTask(task Work)

func (*WorkQueue) Destroy

func (wq *WorkQueue) Destroy()

func (*WorkQueue) Init

func (wq *WorkQueue) Init(threadNum int, queueSize int)

func (*WorkQueue) WaitAllTask

func (wq *WorkQueue) WaitAllTask()

Jump to

Keyboard shortcuts

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