nsid

package
v0.0.0-...-d4f9e80 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Next plugin.Handler
	// contains filtered or unexported fields
}

Handler is a plugin.Handler that implements the NSID extension.

func NewHandler

func NewHandler(privateInfo bool) (*Handler, error)

NewHandler produces a new NSID insertion handler.

func (Handler) Name

func (h Handler) Name() string

Name implements the plugin.Handler interface.

func (Handler) ServeDNS

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

ServeDNS implements the plugin.Handler interface.

Jump to

Keyboard shortcuts

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