core

package
v0.0.0-...-c77d5a7 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: MIT, AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TickRate        = 1 * time.Millisecond
	MetricsRate     = 1 * time.Second
	CollectRate     = 50 * time.Millisecond
	ThresholdsRate  = 2 * time.Second
	ShutdownTimeout = 10 * time.Second

	BackoffAmount = 50 * time.Millisecond
	BackoffMax    = 10 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	Executor      lib.Executor
	Options       lib.Options
	Collectors    []lib.Collector
	NoThresholds  bool
	NoSummary     bool
	SummaryExport bool

	Metrics     map[string]*stats.Metric
	MetricsLock sync.Mutex

	Samples chan stats.SampleContainer
	// contains filtered or unexported fields
}

The Engine is the beating heart of K6.

func NewEngine

func NewEngine(ex lib.Executor, o lib.Options) (*Engine, error)

func (*Engine) GetLogger

func (e *Engine) GetLogger() *logrus.Logger

GetLogger returns Engine's current logger.

func (*Engine) IsTainted

func (e *Engine) IsTainted() bool

func (*Engine) Run

func (e *Engine) Run(ctx context.Context) error

func (*Engine) SetLogger

func (e *Engine) SetLogger(l *logrus.Logger)

SetLogger sets Engine's loggger.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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