Documentation
¶
Index ¶
Constants ¶
View Source
const ( CategoryEvent = "Event" CategoryUser = "User" )
Categories for handlers
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseHandler ¶
BaseHandler This is the base handler all the handlers extend
func NewBaseHandler ¶
func NewBaseHandler(db *gorm.DB) BaseHandler
func (*BaseHandler) WriteResponse ¶
func (b *BaseHandler) WriteResponse(w http.ResponseWriter, reqCtx *ReqContext)
type GetEventsRequest ¶
type GetEventsRequest struct {
Limit int `json:"limit" yaml:"limit"`
}
type GetEventsResponse ¶
type PrometheusHandler ¶
type PrometheusHandler struct {
Path string
Handle http.HandlerFunc
Metrics *metrics.Metrics
}
Handler is an HTTP handle for serving metric data
func NewPrometheusHandler ¶
func NewPrometheusHandler() *PrometheusHandler
New is a factory function creating a new Metrics instance
type ReqContext ¶
Click to show internal directories.
Click to hide internal directories.