failover

package
Version: v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 8 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

Name return middleware name

func (*Failover) ServeDNS

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

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

WriteMsg implements the ctx.ResponseWriter interface

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto