loader

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConnections  = 10
	DefaultRequestCount = 1000
)

Variables

This section is empty.

Functions

func NewLoaderCmd

func NewLoaderCmd(cliIO cliio.IO) *cobra.Command

func NewLoaderDeleteCmd

func NewLoaderDeleteCmd(cliIO cliio.IO) *cobra.Command

func NewLoaderFindCmd

func NewLoaderFindCmd(cliIO cliio.IO) *cobra.Command

func NewLoaderRunCmd

func NewLoaderRunCmd(cliIO cliio.IO) *cobra.Command

func NewLoaderSaveCmd

func NewLoaderSaveCmd(cliIO cliio.IO) *cobra.Command

func NewLoaderStartCmd

func NewLoaderStartCmd(cliIO cliio.IO) *cobra.Command

Types

type DeleteOptions

type DeleteOptions struct {
	cliio.IO

	UUID string
}

func (*DeleteOptions) Run

func (o *DeleteOptions) Run()

type Engine

type Engine struct {
	Value EngineType
}

func (*Engine) Set

func (e *Engine) Set(value string) error

func (*Engine) String

func (e *Engine) String() string

func (*Engine) Type

func (e *Engine) Type() string

type EngineType

type EngineType string
const (
	EngineHTTP     EngineType = "http"
	EngineFastHTTP EngineType = "fast_http"
)

type FindOptions

type FindOptions struct {
	cliio.IO

	UUID string

	LoaderLimit  int
	SummaryLimit int
	FromEpoch    int64
	ToEpoch      int64

	Summary           bool
	ShowRequestsStats bool
	RangeFind         bool

	URL                string
	LoaderName         string
	LoaderDescription  string
	SummaryDescription string
	Output             string
	From               string
	To                 string
	// contains filtered or unexported fields
}

func (*FindOptions) Complete

func (o *FindOptions) Complete()

func (*FindOptions) Run

func (o *FindOptions) Run()

type RunOptions

type RunOptions struct {
	Conf    *model.Loader
	Storage *storage.Storage

	Config             string
	SummaryDescription string
	LoaderConfigName   string

	Engine Engine

	Save                   bool
	SaveRequests           bool
	SaveAggregatedRequests bool

	ShowFullStats       bool
	ShowAggregatedStats bool

	UUID string

	cliio.IO
}

func (*RunOptions) Complete

func (o *RunOptions) Complete()

Complete method setting the configuration and merging the configuration file with command line options

func (*RunOptions) CompleteDB

func (o *RunOptions) CompleteDB()

CompleteDB uses information saved in the database

func (*RunOptions) Run

func (o *RunOptions) Run()

type SaveOptions

type SaveOptions struct {
	cliio.IO
}

func (*SaveOptions) Run

func (o *SaveOptions) Run()

Jump to

Keyboard shortcuts

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