Documentation
¶
Index ¶
- func RandStringBytesMaskImprSrc(n int) string
- func SetLog(entty *logrus.Entry)
- func SetLogger(nLogger *logrus.Logger)
- type GMeterValue
- type Generator
- func (gen *Generator) Generate(methods map[string]blueprint.ExtendedMethods, ...)
- func (gen *Generator) GenerateAgentData(v blueprint.ExtendedMethods, agentQueue chan agent.ElasticData, now time.Time, ...)
- func (gen *Generator) GenerateRequestData(requestQueue chan monitor.MeterMessage, ...)
- func (gen *Generator) GenerateTrafficData(trafficQueue chan []throughputagent.TrafficMessage) time.Time
- func (gen *Generator) Start()
- type MeterGenerator
- type MeterValue
- type RandomGenerator
- type TimedViolationGenerator
- type ViolationfreeGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
type MeterGenerator ¶
type MeterGenerator interface {
// contains filtered or unexported methods
}
type MeterValue ¶
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
Click to show internal directories.
Click to hide internal directories.