Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enable bool `yaml:"enabled,omitempty"` Goroutine *Goroutine `yaml:"goroutine,omitempty"` Rtt *Rtt `yaml:"rtt,omitempty"` Ratio *Ratio `yaml:"ratio,omitempty"` Duration *Duration `yaml:"duration,omitempty"` }
func (*Config) SetDefaults ¶
func (c *Config) SetDefaults()
type Goroutine ¶
type Goroutine struct { InitThreshold int `yaml:"initThreshold,omitempty" default:"16" validate:"gte=1"` MaxGoroutine int `yaml:"maxGoroutine,omitempty" default:"30" validate:"gte=1"` UnstableTolerate int `yaml:"unstableTolerate,omitempty" default:"3" validate:"gte=1"` ChannelLenOfCap float64 `yaml:"channelLenOfCap,omitempty" default:"0.4" validate:"gt=0"` }
Click to show internal directories.
Click to hide internal directories.