Versions in this module Expand all Collapse all v0 v0.2.0 Oct 21, 2019 Changes in this version + const HTTP_HANDLE_METRIC + const HTTP_HANDLE_MONITOR + const HTTP_HANDLE_RELOAD + func ParamsMultiValueGet(params map[string][]string, key string) ([]string, error) + func ParamsValueGet(params map[string][]string, key string) (string, error) + func RegisterHandlers(wh *HttpHandlers, hType int, ht map[string]interface{}) error + type GroupMetrics struct + func (gm *GroupMetrics) Counter(prefix string, tags map[string]string) metrics.Counter + func (gm *GroupMetrics) Gauge(prefix string, tags map[string]string) metrics.Gauge + func (gm *GroupMetrics) Histogram(prefix string, tags map[string]string) metrics.Histogram + func (gm *GroupMetrics) HistogramWithBucket(prefix string, tags map[string]string, buckets metrics.Buckets) metrics.Histogram + func (gm *GroupMetrics) IntegerGauge(prefix string, tags map[string]string) metrics.IntegerGauge + func (gm *GroupMetrics) Timer(prefix string, tags map[string]string) metrics.Timer + type HttpHandlerMap map[string]interface + func NewHttpHandlerMap() *HttpHandlerMap + type HttpHandlers struct + Handlers map[int]*HttpHandlerMap + func NewWebHandlers() *HttpHandlers + func (wh *HttpHandlers) GetHandler(hType int, command string) (interface{}, error) + func (wh *HttpHandlers) RegisterHandler(hType int, command string, f interface{}) error + type HttpServer struct + func NewHttpServer(name string, version string, port int) *HttpServer + func (srv *HttpServer) GetPromMetrics() *PromMetrics + func (srv *HttpServer) HandlersSet(handlers *HttpHandlers) + func (srv *HttpServer) ListenAndServe() error + func (srv *HttpServer) RegisterHandler(hType int, command string, f interface{}) error + func (srv *HttpServer) RegisterHandlers(hType int, ht map[string]interface{}) error + func (srv *HttpServer) Start() + type PromMetrics struct + func (pm *PromMetrics) RegistryGroup(prefix string, tags map[string]string, interval time.Duration) *GroupMetrics