conf

package
v0.0.0-...-1c8de56 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientType

type ClientType int

ClientType enum

const (
	// UnknownClient unknown endpoint type
	UnknownClient ClientType = iota
	// TCP type
	TCP
	// HTTPPost type
	HTTPPost
)

func ParseClinetType

func ParseClinetType(str string) ClientType

ParseClinetType parses string to ClinetType

func (ClientType) String

func (i ClientType) String() string

type Console

type Console struct {
	Level           uint
	Flat            bool
	DisableColors   bool
	FullTimestamp   bool
	Histogram       bool
	TimestampFormat string
}

Console configuraiton

type Endpoint

type Endpoint struct {
	Address string
	Port    uint
	Type    ClientType
}

Endpoint configuration

type Endpoints

type Endpoints struct {
	Active   []uint
	Endpoint []Endpoint
}

Endpoints configuration

type Log

type Log struct {
	LogDir          string
	LogFile         string
	Level           uint
	LogReqDir       string
	LogResDir       string
	DisableColors   bool
	FullTimestamp   bool
	TimestampFormat string
	Histogram       bool
}

Log configuraiton

type SlingConfig

type SlingConfig struct {
	Slingconfig   string
	File          string
	Dir           string
	Wildcard      string
	SaveReqDir    string
	SaveResDir    string
	Repeat        uint
	SaveReq       bool
	SaveRes       bool
	EndpointIndex uint
	Endpoints     []Endpoint
	Throttle      Throttle
	Log           Log
	Console       Console
}

SlingConfig configuration

func NewConfig

func NewConfig() *SlingConfig

NewConfig creates new sling configuration.

type Throttle

type Throttle struct {
	CxnNum  uint
	CxnLim  bool
	SleepMs uint
	RateSec uint
	RateMin uint
	TmoSec  uint
	TmoRdS  uint
	TmoWrS  uint
	TmoCxn  uint
}

Throttle configuraiton

Jump to

Keyboard shortcuts

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