config

package
v0.0.0-...-7595b59 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

func ReadConfig(confFilePath string) (*Config, error)

Jump to

Keyboard shortcuts

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