Documentation ¶
Overview ¶
Package grafana provides an input to the badgedata library to retreive dashboard download count from the public Grafana API.
Index ¶
Constants ¶
View Source
const DashboardAPI = "https://grafana.com/api/dashboards/"
DashboardAPI is the URL to the JSON API at Grafana.com
Variables ¶
This section is empty.
Functions ¶
func ServeHTTP ¶
func ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP is our main traffic handler.
func WriteDashboardDownloadCount ¶
func WriteDashboardDownloadCount(w http.ResponseWriter, r *http.Request)
WriteDashboardDownloadCount makes sure data is fresh and returns the count for dashboard downloads.
Types ¶
Click to show internal directories.
Click to hide internal directories.