Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeLogger ¶
func InitializeLogger()
func SetLogLevel ¶
func SetLogLevel(level string)
func ValidateConfig ¶
func WriteResult ¶
Types ¶
type Config ¶
type Config struct { LibrespeedBinary string LibrespeedServer int CronSpec string LogLevel string InfluxAddress string InfluxToken string // v2 InfluxOrg string // v2 InfluxBucket string // v2 InfluxUsername string // v1 InfluxPassword string // v1 InfluxDatabase string // v1 InfluxSSL bool // ? }
func ParseConfig ¶
type Result ¶
type Result struct { Timestamp string `json:"timestamp"` //TODO: check type? Server Server `json:"server"` Client Client `json:"client"` BytesSent int `json:"bytes_sent"` BytesReceived int `json:"bytes_received"` Ping float64 `json:"ping"` Jitter float64 `json:"jitter"` Upload float64 `json:"upload"` Download float64 `json:"download"` }
Click to show internal directories.
Click to hide internal directories.