whoami

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 the base struct representing the Handler

func NewWhoami

func NewWhoami(d string, privateInfo bool) (*Handler, error)

NewWhoami initializes a new whoami Handler.

func (*Handler) Name

func (wh *Handler) Name() string

Name returns the handlers name

func (*Handler) ServeDNS

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

ServeDNS serves whoami queries

Jump to

Keyboard shortcuts

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