Documentation ¶
Index ¶
- Variables
- func CheckAndSetReloadProcess() bool
- func CheckAndUnSetReloadProcess() bool
- func CheckReloadProcess() bool
- func DeviceProcessStart()
- func DeviceProcessStop()
- func GetDevStats() map[string]*devices.DevStat
- func GetDevice(id string) (devices.Device, error)
- func GetDeviceJSONInfo(id string) ([]byte, error)
- func LoadConf()
- func PrepareInfluxDBs() map[string]*output.InfluxDB
- func ReleaseDevices()
- func ReleaseInfluxOut(idb map[string]*output.InfluxDB)
- func ReloadConf() (time.Duration, error)
- func SetDefTimeZone(tz string)
- func SetLogger(l *logrus.Logger)
- func StopInfluxOut(idb map[string]*output.InfluxDB)
- type RInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string Commit string Branch string BuildStamp string )
Version X.Y.Z based versioning
Functions ¶
func CheckAndSetReloadProcess ¶
func CheckAndSetReloadProcess() bool
CheckAndSetReloadProcess set the reloadProcess flat to true and return the last stat before true set
func CheckAndUnSetReloadProcess ¶
func CheckAndUnSetReloadProcess() bool
CheckAndUnSetReloadProcess set the reloadProcess flat to false and return the last stat before true set
func CheckReloadProcess ¶
func CheckReloadProcess() bool
CheckReloadProcess check if the agent is doing a reloading just now
func GetDeviceJSONInfo ¶
GetDeviceJSONInfo get device data in JSON format just if not doing a reloading process
func PrepareInfluxDBs ¶
PrepareInfluxDBs review all configured db's in the SQL database and check if exist at least a "default", if not creates a dummy db which does nothing
func ReloadConf ¶
ReloadConf call to reinitialize alln configurations
func SetDefTimeZone ¶
func SetDefTimeZone(tz string)
Types ¶
Click to show internal directories.
Click to hide internal directories.