eeaao

package module
v0.0.0-...-1ea1790 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MailServers = []string{"iedub0", "hubud0"}
View Source
var MxHosts = map[string][]mxRecord{
	"google": {
		{10, "aspmx.l.google.com."},
		{20, "alt1.aspmx.l.google.com."},
		{20, "alt2.aspmx.l.google.com."},
		{30, "aspmx2.googlemail.com."},
		{30, "aspmx3.googlemail.com."},
		{30, "aspmx4.googlemail.com."},
		{30, "aspmx5.googlemail.com."},
	},
	"y7": {},
}

Functions

func Contains

func Contains[T comparable](s []T, e T) bool

func ToString

func ToString(m *dns.Msg) string

ToString converts the message m to a base64 encoded string.

Types

type Eeaao

type Eeaao struct {
	Next plugin.Handler
}

Eeaao is a plugin that returns your IP address, port and the protocol used for connecting to CoreDNS.

func (Eeaao) Name

func (wh Eeaao) Name() string

Name implements the Handler interface.

func (Eeaao) ServeDNS

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

ServeDNS implements the plugin.Handler interface.

type EeaaoReqMetadata

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

Jump to

Keyboard shortcuts

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