test

package
v0.0.0-...-5fb8a3f Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RR

func RR(s string) dns.RR

RR parses s as a DNS resource record.

Types

type Server

type Server struct {
	Addr string // Address where the server listening.
	// contains filtered or unexported fields
}

A Server is an DNS server listening on a system-chosen port on the local loopback interface, for use in end-to-end DNS tests.

func NewServer

func NewServer(f dns.HandlerFunc) *Server

NewServer starts and returns a new Server. The caller should call Close when finished, to shut it down.

func (*Server) Close

func (s *Server) Close()

Close shuts down the server.

Jump to

Keyboard shortcuts

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