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.
Click to show internal directories.
Click to hide internal directories.