dlg

package module
v0.0.0-...-e917273 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

README

DLG - Da Load Generator

dlg is a universal load generate it can be used to generate load for anything from HTTP servers to dhcp servers.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManagerRouter

func NewManagerRouter(e *gin.Engine, m Manager)

NewManagerRouter returns a new manager router.

Types

type Manager

type Manager interface {
	executor.Plan

	// Get is used to return a plan by name.
	Get(context.Context, string) (*config.Plan, error)

	// Add is used to add a new plan.
	Add(context.Context, *config.Plan) error

	// Delete is used to remove a plan.
	Delete(context.Context, string) error

	// Plans returns a list of all known plans.
	Plans(context.Context) ([]*config.Plan, error)
}

Manager is used for scheduling execution plans.

func NewManager

func NewManager(planExec executor.Plan) Manager

NewManager returns a new Manager.

Jump to

Keyboard shortcuts

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