package conf type ConnetionConfig struct { Handshake uint32 `mapstructure:"handshake"` ConnIdle uint32 `mapstructure:"connIdle"` UplinkOnly uint32 `mapstructure:"uplinkOnly"` DownlinkOnly uint32 `mapstructure:"downlinkOnly"` BufferSize int32 `mapstructure:"bufferSize"` } func NewConnetionConfig() *ConnetionConfig { return &ConnetionConfig{ Handshake: 4, ConnIdle: 30, UplinkOnly: 2, DownlinkOnly: 4, BufferSize: 64, } }