metrics

package
v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) ClientOnly added in v1.6.4

func (m *Metrics) ClientOnly() bool

(*Metrics).ClientOnly marks metrics as a client-traffic observer; the middleware.Setup sub-pipeline excludes it so internal sub-queries don't inflate per-query counters.

func (*Metrics) Name

func (m *Metrics) Name() string

(*Metrics).Name name return middleware name.

func (*Metrics) ServeDNS

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

(*Metrics).ServeDNS serveDNS implements the Handle interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL