Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultAddr = "0.0.0.0:8125"
Variables ¶
This section is empty.
Functions ¶
func DefaultErrHandler ¶
func DefaultMetricHandler ¶
Types ¶
type ErrHandler ¶
type MetricHandler ¶
func MultiHandler ¶
func MultiHandler(handlers ...MetricHandler) MetricHandler
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func Listen ¶
func Listen( ctx context.Context, addr string, metricHandler MetricHandler, errHandler ErrHandler, ) (*Server, error)
func ListenUDP ¶
func ListenUDP( ctx context.Context, addr *net.UDPAddr, metricHandler MetricHandler, errHandler ErrHandler, ) (*Server, error)
Click to show internal directories.
Click to hide internal directories.