Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcquireLabels

func AcquireLabels() prometheus.Labels

    AcquireLabels returns a label from pool

    func ReleaseLabels

    func ReleaseLabels(labels prometheus.Labels)

      ReleaseLabels returns labels to pool

      Types

      type Metrics

      type Metrics struct {
      	// contains filtered or unexported fields
      }

        Metrics type

        func New

        func New(cfg *config.Config) *Metrics

          New return new metrics

          func (*Metrics) Name

          func (m *Metrics) Name() string

            Name return middleware name

            func (*Metrics) ServeDNS

            func (m *Metrics) ServeDNS(ctx context.Context, ch *middleware.Chain)

              ServeDNS implements the Handle interface.

              Source Files