Documentation
¶
Index ¶
- Constants
- func BeginPollingNetworkMetrics()
- func Find(slice []string, val string) (int, bool)
- func GenerateNetworkMetricsStatus() models.NetworkMetricsStatus
- func GetAllDevices() []models.Station
- func GetNetworkMetrics() (models.GetRealTimeMetricsResponse, error)
- func GetStoredNetworkMetrics(limit int, skip int) ([]models.ChartNetworkMetrics, error)
- func MetricsMiddleware() gin.HandlerFunc
- func SetupLogger()
- func StaticServe(urlPrefix string, fs *packr.Box) gin.HandlerFunc
- type NetworkMetricsProperties
- type Version
Constants ¶
const (
FOYER_BASE_URL = "https://googlehomefoyer-pa.googleapis.com/v2"
)
Variables ¶
This section is empty.
Functions ¶
func BeginPollingNetworkMetrics ¶
func BeginPollingNetworkMetrics()
BeginPollingNetworkMetrics begin the Polling for Network Metrics
func Find ¶
Find takes a slice and looks for an element in it. If found it will return it's key, otherwise it will return -1 and a bool of false.
func GenerateNetworkMetricsStatus ¶
func GenerateNetworkMetricsStatus() models.NetworkMetricsStatus
GenerateNetworkMetricsStatus generates a models.NetworkMetricsStatus
func GetAllDevices ¶
GetAllDevices returns all devices that are, or used to be connected to the network.
func GetNetworkMetrics ¶
func GetNetworkMetrics() (models.GetRealTimeMetricsResponse, error)
GetNetworkMetrics returns all devices that are, or used to be connected to the network.
func GetStoredNetworkMetrics ¶
func GetStoredNetworkMetrics(limit int, skip int) ([]models.ChartNetworkMetrics, error)
GetStoredNetworkMetrics returns stored Network Metrics based on the params
func MetricsMiddleware ¶
func MetricsMiddleware() gin.HandlerFunc
MetricsMiddleware generates Prometheus metrics data about the request
func StaticServe ¶
func StaticServe(urlPrefix string, fs *packr.Box) gin.HandlerFunc
StaticServe serves the data
Types ¶
type NetworkMetricsProperties ¶
type NetworkMetricsProperties struct { IsPolling bool // contains filtered or unexported fields }
NetworkMetricsProperties captures the various state about the Network Metrics collection feature