Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidAddr invalid address. ErrInvalidAddr = errors.New("invalid address") )
Functions ¶
func DecodeConfig ¶
Types ¶
type Config ¶
type Config struct { TcpAddr string `toml:"tcpAddr"` UdpAddr string `toml:"udpAddr"` ReadChanSize int `toml:"readChanSize"` TcpBatchMaxBytes int `toml:"tcpBatchMaxBytes"` UdpPacketMaxSize int `toml:"udpPacketMaxSize"` LogMaxBytes int `toml:"logMaxBytes"` UdpReadTimeout xtime.Duration `toml:"udpReadTimeout"` TcpReadTimeout xtime.Duration `toml:"tcpReadTimeout"` }
func (*Config) ConfigValidate ¶
Click to show internal directories.
Click to hide internal directories.