failover

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Failover

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

Failover type.

func New

func New(cfg *config.Config) *Failover

New return failover.

func (*Failover) Name

func (f *Failover) Name() string

(*Failover).Name name return middleware name.

func (*Failover) ServeDNS

func (f *Failover) ServeDNS(ctx context.Context, ch *middleware.Chain)

(*Failover).ServeDNS serveDNS implements the Handle interface.

type ResponseWriter

type ResponseWriter struct {
	middleware.ResponseWriter
	// contains filtered or unexported fields
}

ResponseWriter implement of ctx.ResponseWriter.

func (*ResponseWriter) WriteMsg

func (w *ResponseWriter) WriteMsg(m *dns.Msg) error

(*ResponseWriter).WriteMsg writeMsg implements the ctx.ResponseWriter interface.

Jump to

Keyboard shortcuts

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