sdns: Index | Files

package metrics

import ""


Package Files


func AcquireLabels Uses

func AcquireLabels() prometheus.Labels

AcquireLabels returns a label from pool

func ReleaseLabels Uses

func ReleaseLabels(labels prometheus.Labels)

ReleaseLabels returns labels to pool

type Metrics Uses

type Metrics struct {
    // contains filtered or unexported fields

Metrics type

func New Uses

func New(cfg *config.Config) *Metrics

New return new metrics

func (*Metrics) Name Uses

func (m *Metrics) Name() string

Name return middleware name

func (*Metrics) ServeDNS Uses

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

ServeDNS implements the Handle interface.

Package metrics imports 6 packages (graph) and is imported by 1 packages. Updated 2020-10-28. Refresh now. Tools for package owners.