Documentation
¶
Index ¶
- Variables
- type Flag
- func (c *Flag) GetAuth() string
- func (c *Flag) GetConnectURL() string
- func (c *Flag) GetExecute() []string
- func (c *Flag) GetHeaders() []string
- func (c *Flag) GetOrigin() string
- func (c *Flag) GetPerfConfig() Perf
- func (c *Flag) GetPerfOutfile() string
- func (c *Flag) GetPingInterval() time.Duration
- func (c *Flag) GetPrintInterval() time.Duration
- func (c *Flag) GetProxy() string
- func (c *Flag) GetSubProtocol() []string
- func (c *Flag) GetTLS() TLS
- func (c *Flag) GetWait() time.Duration
- func (c *Flag) IsBinary() bool
- func (c *Flag) IsGzipResponse() bool
- func (c *Flag) IsHelp() bool
- func (c *Flag) IsJSONPrettyPrint() bool
- func (c *Flag) IsNoColor() bool
- func (c *Flag) IsPerf() bool
- func (c *Flag) IsShowVersion() bool
- func (c *Flag) IsSlash() bool
- func (c *Flag) IsStdOut() bool
- func (c *Flag) IsStdin() bool
- func (c *Flag) IsVerbose() bool
- func (c *Flag) SetAuth(auth string)
- func (c *Flag) SetConnectURL(connectURL string)
- func (c *Flag) SetExecute(execute []string)
- func (c *Flag) SetGzipResponse(gzipr bool)
- func (c *Flag) SetHeaders(headers []string)
- func (c *Flag) SetHelp(help bool)
- func (c *Flag) SetIsBinary(isBinary bool)
- func (c *Flag) SetIsSlash(isSlash bool)
- func (c *Flag) SetJSONPrettyPrint(jSONPrettyPrint bool)
- func (c *Flag) SetNoCertificateCheck(noCertificateCheck bool)
- func (c *Flag) SetNoColor(noColor bool)
- func (c *Flag) SetOrigin(origin string)
- func (c *Flag) SetPerf(isPerf bool)
- func (c *Flag) SetPerfConfig(perf Perf)
- func (c *Flag) SetPerfOutfile(file string)
- func (c *Flag) SetPrintInterval(dur time.Duration)
- func (c *Flag) SetProxy(proxy string)
- func (c *Flag) SetResponse(response bool)
- func (c *Flag) SetShowPingPong(showPingPong bool)
- func (c *Flag) SetStdin(stdin bool)
- func (c *Flag) SetSubProtocol(subProtocol []string)
- func (c *Flag) SetTLS(tls TLS)
- func (c *Flag) SetVerbose(verbose bool)
- func (c *Flag) SetVersion(version bool)
- func (c *Flag) SetWait(wait time.Duration)
- func (c *Flag) ShouldProcessAsCmd() bool
- func (c *Flag) ShowPingPong() bool
- func (c *Flag) ShowResponseHeaders() bool
- func (c *Flag) SkipCertificateCheck() bool
- func (c *Flag) String() string
- type Perf
- type TLS
Constants ¶
This section is empty.
Variables ¶
View Source
var IsSTDoutRedirected bool
Functions ¶
This section is empty.
Types ¶
type Flag ¶ added in v0.0.3
type Flag struct {
// contains filtered or unexported fields
}
var Flags *Flag
func (*Flag) GetConnectURL ¶ added in v0.0.3
func (*Flag) GetExecute ¶ added in v0.0.3
func (*Flag) GetHeaders ¶ added in v0.0.3
func (*Flag) GetPerfConfig ¶ added in v0.0.6
func (*Flag) GetPerfOutfile ¶ added in v1.0.0
func (*Flag) GetPingInterval ¶ added in v1.0.2
func (*Flag) GetPrintInterval ¶ added in v1.0.0
func (*Flag) GetSubProtocol ¶ added in v0.0.3
func (*Flag) IsGzipResponse ¶ added in v0.0.3
func (*Flag) IsJSONPrettyPrint ¶ added in v0.0.3
func (*Flag) IsShowVersion ¶ added in v0.0.3
func (*Flag) SetConnectURL ¶ added in v0.0.3
func (*Flag) SetExecute ¶ added in v0.0.3
func (*Flag) SetGzipResponse ¶ added in v0.0.3
func (*Flag) SetHeaders ¶ added in v0.0.3
func (*Flag) SetIsBinary ¶ added in v0.0.3
func (*Flag) SetIsSlash ¶ added in v0.0.3
func (*Flag) SetJSONPrettyPrint ¶ added in v0.0.3
func (*Flag) SetNoCertificateCheck ¶ added in v0.0.3
func (*Flag) SetNoColor ¶ added in v0.0.3
func (*Flag) SetPerfConfig ¶ added in v1.0.13
func (*Flag) SetPerfOutfile ¶ added in v1.0.0
func (*Flag) SetPrintInterval ¶ added in v1.0.0
func (*Flag) SetResponse ¶ added in v0.0.3
func (*Flag) SetShowPingPong ¶ added in v0.0.3
func (*Flag) SetSubProtocol ¶ added in v0.0.3
func (*Flag) SetVerbose ¶ added in v0.0.3
func (*Flag) SetVersion ¶ added in v0.0.3
func (*Flag) ShouldProcessAsCmd ¶ added in v0.0.4
func (*Flag) ShowPingPong ¶ added in v0.0.3
func (*Flag) ShowResponseHeaders ¶ added in v0.0.3
func (*Flag) SkipCertificateCheck ¶ added in v0.0.3
type Perf ¶ added in v0.0.6
type Perf struct {
TotalConns int `yaml:"tc"` //total connections which needs to be created.
LoadMessage string `yaml:"lm"` //the load message which needs to be sent to the server.
MessagePerSecond int `yaml:"mps"` //how many messages to be sent per second.
AuthMessage string `yaml:"am"` //the auth message which needs to be send as soon as connecting.
WaitBeforeAuth time.Duration `yaml:"wba"` //wait for x amount of time before sending auth message
WaitAfterAuth time.Duration `yaml:"waa"` //wait for x amount of time before starting to send load.
RampUpConnsPerSecond int `yaml:"rups"` //how many connections to add every second
LogOutFile string `yaml:"outfile"` //give the file path where to write the logs
Config string //the file path from where to get the perf config
}
Click to show internal directories.
Click to hide internal directories.