Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunMetricServer ¶
func RunMetricServer(cfg *Config)
Types ¶
type Config ¶
type Config struct { Port int NewWebService newWebServiceFunc Router router.Registrator }
func GetDefaultConfig ¶
type Metric ¶
type Metric struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler() *Metric
func (*Metric) HandlerHealthCheck ¶
func (p *Metric) HandlerHealthCheck(w http.ResponseWriter, r *http.Request) response.HTTPResponse
func (*Metric) HandlerMetrics ¶
func (p *Metric) HandlerMetrics(w http.ResponseWriter, r *http.Request) response.HTTPResponse
func (*Metric) Register ¶
func (p *Metric) Register(rr router.Registrator)
type RunMetricServerFunc ¶
type RunMetricServerFunc func(cfg *Config)
Click to show internal directories.
Click to hide internal directories.