tldstats

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RequestCount = promauto.NewCounterVec(prometheus.CounterOpts{
		Namespace: plugin.Namespace,
		Subsystem: pluginName,
		Name:      "requests_total",
		Help:      "The count of tld requests",
	}, []string{"tld", "type"})
)

Functions

This section is empty.

Types

type TLDStats

type TLDStats struct {
	Next plugin.Handler
}

func (*TLDStats) Name

func (s *TLDStats) Name() string

func (*TLDStats) ServeDNS

func (s *TLDStats) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)

Jump to

Keyboard shortcuts

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