generator

package
v0.0.0-...-e9ab6a4 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostGenerator

type HostGenerator struct {
	HostQueue chan data.Host
	RC        chan data.ControlMessage
	// contains filtered or unexported fields
}

HostGenerator generates random Hosts

func CreateGenerator

func CreateGenerator(workerCnt int) (*HostGenerator, error)

CreateGenerator creates a new HostGenerator.

func (*HostGenerator) Count

func (gen *HostGenerator) Count() int

Count returns the number of workers.

func (*HostGenerator) IsRunning

func (gen *HostGenerator) IsRunning() bool

IsRunning returns true if the HostGenerator is running.

func (*HostGenerator) Start

func (gen *HostGenerator) Start()

Start starts the HostGenerator

func (*HostGenerator) Stop

func (gen *HostGenerator) Stop()

Stop tells the HostGenerator to stop.

Jump to

Keyboard shortcuts

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