generator

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGenerator

func AddGenerator(s string, f func(GeneratorInitParams) Generator) error

Types

type Generator

type Generator interface {
	Init() error
	Update(interface{}) error
	Run()
	Stop() error
	DeInit() error
}

func New

func New(s *socketeer.RawSocketeer, o config.HammerConfig, logFunc func(string) bool, errFunc func(error) bool, statFunc func(stats.StatValue) bool) (Generator, error)

func NewDhcpV4

func NewDhcpV4(gip GeneratorInitParams) Generator

type GeneratorInitParams

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

type GeneratorV4

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

func (*GeneratorV4) DeInit

func (g *GeneratorV4) DeInit() error

func (*GeneratorV4) Init

func (g *GeneratorV4) Init() error

func (*GeneratorV4) Run

func (g *GeneratorV4) Run()

func (*GeneratorV4) Stop

func (g *GeneratorV4) Stop() error

func (*GeneratorV4) Update

func (g *GeneratorV4) Update(details interface{}) error

Jump to

Keyboard shortcuts

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