Documentation ¶
Overview ¶
package target provides the stress server for performance testing
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
StressClusterToken = "stress_etcd_cluster"
)
Functions ¶
func StartHTTPTarget ¶
Start HTTP target by providing target configurations
Types ¶
type Config ¶
type Config struct { // <addr>:<port> to bind target BindAddress string // if print log periodically PrintLog bool // signal channel for SIGHUP Sighup chan os.Signal // if enable etcd EnableEtcd bool // etcd server config Etcd server.Config }
Config is the config settings for stress target
type StatsListener ¶
StatsListener records listener related stats including connection number it is a wrapper of net.Listener
func StatsListen ¶
func StatsListen(addr string) (*StatsListener, error)
StatsListen creats StatsListener internally creates a tcp4 net.Listener
Click to show internal directories.
Click to hide internal directories.