package
Version:
v0.0.0-...-37e6509
Opens a new window with list of versions in this module.
Published: Mar 4, 2020
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
¶
func LoadConfig(dest interface{}, defaultConfig string)
type DBConfig struct {
File string `json:"file" yaml:"file"`
Timeout time.Duration `json:"timeout" yaml:"timeout"`
}
type MqttConfig struct {
BrokerAddr string `json:"broker_addr" yaml:"broker_addr"`
ConnectTimeout time.Duration `json:"connect_timeout" yaml:"connect_timeout"`
RequestTimeout time.Duration `json:"request_timeout" yaml:"request_timeout"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.