noop

package
v2.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CacheType = "noop"

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics interface {
	SetCacheType(cacheType string)
}

type NoOp

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

func New

func New(settings Settings) *NoOp

func (*NoOp) Add

func (n *NoOp) Add(*dns.Msg, *dns.Msg)

func (*NoOp) Get

func (n *NoOp) Get(*dns.Msg) (response *dns.Msg)

type Settings

type Settings struct {
	// Metrics is the metrics interface to record the cache type.
	// It defaults to a No-Op metric implementation.
	Metrics Metrics
}

func (*Settings) SetDefaults

func (s *Settings) SetDefaults()

func (*Settings) String

func (s *Settings) String() string

func (*Settings) ToLinesNode

func (s *Settings) ToLinesNode() (node *gotree.Node)

func (Settings) Validate

func (s Settings) Validate() (err error)

Jump to

Keyboard shortcuts

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