Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Name = "nsq"
Functions ¶
Types ¶
type Cfg ¶
type Cfg struct { Name string `json:"name"` Topic string `json:"topic"` Channel string `json:"channel"` Address string `json:"address"` Lookup []string `json:"lookup"` MaxInFlight int `json:"max_in_flight"` MaxConcurrency int `json:"max_concurrency"` DialTimeout time.Duration `json:"dial_timeout"` ReadTimeout time.Duration `json:"read_timeout"` WriteTimeout time.Duration `json:"write_timeout"` DrainTimeout time.Duration `json:"drain_timeout"` }
func GetDefaultCfg ¶
func GetDefaultCfg() Cfg
Click to show internal directories.
Click to hide internal directories.