Documentation ¶
Index ¶
- func HandleGetMetric(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
- func HandleGetMetrics(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
- func HandleGetStatus(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
- func HandlePatchStatus(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
- func NewHandler() http.Handler
- type Metric
- type NullMetricType
- type NullValueType
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleGetMetric ¶
func HandleGetMetric(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
func HandleGetMetrics ¶
func HandleGetMetrics(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
func HandleGetStatus ¶
func HandleGetStatus(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
func HandlePatchStatus ¶
func HandlePatchStatus(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
func NewHandler ¶
Types ¶
type Metric ¶
type Metric struct { Name string `json:"-"` Type NullMetricType `json:"type"` Contains NullValueType `json:"contains"` }
type NullMetricType ¶
type NullMetricType struct { Type stats.MetricType Valid bool }
func (NullMetricType) MarshalJSON ¶
func (t NullMetricType) MarshalJSON() ([]byte, error)
func (*NullMetricType) UnmarshalJSON ¶
func (t *NullMetricType) UnmarshalJSON(data []byte) error
type NullValueType ¶
func (NullValueType) MarshalJSON ¶
func (t NullValueType) MarshalJSON() ([]byte, error)
func (*NullValueType) UnmarshalJSON ¶
func (t *NullValueType) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.