generator

package
v0.0.0-...-81c94d3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: Apache-2.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandStringBytesMaskImprSrc

func RandStringBytesMaskImprSrc(n int) string

func SetLog

func SetLog(entty *logrus.Entry)

func SetLogger

func SetLogger(nLogger *logrus.Logger)

Types

type GMeterValue

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

func (*GMeterValue) AsDuration

func (g *GMeterValue) AsDuration() time.Duration

func (*GMeterValue) AsFloat

func (g *GMeterValue) AsFloat() float64

func (*GMeterValue) AsInt

func (g *GMeterValue) AsInt() int32

func (*GMeterValue) AsInterface

func (g *GMeterValue) AsInterface() interface{}

type Generator

type Generator struct {
	Blueprint spec.BlueprintType
	ESC       *elastic.Client
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(mg MeterGenerator) (*Generator, error)

func (*Generator) Generate

func (gen *Generator) Generate(methods map[string]blueprint.ExtendedMethods, agentQueue chan agent.ElasticData, trafficQueue chan []throughputagent.TrafficMessage, requestQueue chan monitor.MeterMessage, exchangeQueue chan monitor.ExchangeMessage, mg MeterGenerator)

func (*Generator) GenerateAgentData

func (gen *Generator) GenerateAgentData(v blueprint.ExtendedMethods, agentQueue chan agent.ElasticData, now time.Time, operationID string, meterGenerator MeterGenerator)

func (*Generator) GenerateRequestData

func (gen *Generator) GenerateRequestData(requestQueue chan monitor.MeterMessage, exchangeQueue chan monitor.ExchangeMessage, operationID string, method blueprint.ExtendedMethods)

func (*Generator) GenerateTrafficData

func (gen *Generator) GenerateTrafficData(trafficQueue chan []throughputagent.TrafficMessage) time.Time

func (*Generator) Start

func (gen *Generator) Start()

type MeterGenerator

type MeterGenerator interface {
	// contains filtered or unexported methods
}

type MeterValue

type MeterValue interface {
	AsFloat() float64
	AsInt() int32
	AsDuration() time.Duration
	AsInterface() interface{}
}

type RandomGenerator

type RandomGenerator struct{}

func NewRandomMeterGenerator

func NewRandomMeterGenerator() RandomGenerator

type TimedViolationGenerator

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

func NewTimedViolationGenerator

func NewTimedViolationGenerator(args []string) TimedViolationGenerator

type ViolationfreeGenerator

type ViolationfreeGenerator struct{}

func NewViolationfreeGenerator

func NewViolationfreeGenerator() ViolationfreeGenerator

Jump to

Keyboard shortcuts

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