Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Mu sync.Mutex
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ClientPortLower int `yaml:"client_port_lower"` ClientPortUpper int `yaml:"client_port_upper"` ProtocolID int `yaml:"protocol_id"` PreferredMSS int `yaml:"preferred_mss"` WindowScale int `yaml:"window_scale"` WindowSizeWithScale int `yaml:"window_size_with_scale"` KeepaliveInterval int `yaml:"keepalive_interval"` IdleTimeout int `yaml:"idle_timeout"` MaxKeepaliveAttempts int `yaml:"max_keepalive_attempts"` KeepAliveEnabled bool `yaml:"keep_alive_enabled"` PacketLostSimulation bool `yaml:"packet_lost_simulation"` MaxResendCount int `yaml:"max_resend_count"` // max resend tries ResendInterval int `yaml:"resend_interval"` // packet resend interval in number of mini-seconds SackPermitSupport bool `yaml:"sack_permit_support"` SackOptionSupport bool `yaml:"sack_option_support"` PayloadPoolSize int `yaml:"payload_pool_size"` ConnSignalRetry int `yaml:"conn_signal_retry"` ConnSignalRetryInterval int `yaml:"conn_signal_retry_interval"` PConnTimeout int `yaml:"pconn_time_out"` IptableRuleDaley int `yaml:"iptable_rule_daley"` ChecksumVerification bool `yaml:"checksum_verification"` Debug bool `yaml:"debug"` PoolDebug bool `yaml:"pool_debug"` ProcessingTimeThreshold int `yaml:"processing_time_threshold"` ConnectionInputQueue int `yaml:"connection_input_queue"` PconnOutputQueue int `yaml:"pconn_output_queue"` ShowStatistics bool `yaml:"show_statistics"` }
var AppConfig *Config
func ReadConfig ¶
Click to show internal directories.
Click to hide internal directories.