workerpool

package
v0.0.0-...-aa46052 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

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

func (*Counter) Increase

func (c *Counter) Increase()

func (*Counter) Total

func (c *Counter) Total() int

type WorkLoad

type WorkLoad interface {
	ID() string
	Work(client *http.Client, userAgent string) error
}

type WorkerPool

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

func New

func New(userAgents []string, interval string) (*WorkerPool, error)

func (*WorkerPool) Run

func (c *WorkerPool) Run(workloads chan WorkLoad)

Jump to

Keyboard shortcuts

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