bootstrap

package
v3.9.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMinimumUpdateInterval = time.Second * 600  // 10 min
	DefaultMaximumUpdateInterval = time.Second * 3600 // 1 hour
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bootstrap

type Bootstrap struct {
	// Fqdn is the fully qualified domain name that needs to be resolved.
	Fqdn string

	// Upstream for this Bootstrap to send queries to.
	Upstream upstream.Upstream

	// Mode specifies whether this Bootstrap works on IPv4 or IPv6.
	// A zero value Mode is invalid.
	Mode BootstrapMode

	// MinimumUpdateInterval specifies the minimum update interval.
	// Default is DefaultMinimumUpdateInterval.
	MinimumUpdateInterval time.Duration

	// MaximumUpdateInterval specifies the maximum update interval.
	// Default is DefaultMaximumUpdateInterval.
	MaximumUpdateInterval time.Duration

	Logger *zap.Logger
	// contains filtered or unexported fields
}

func (*Bootstrap) GetAddr

func (b *Bootstrap) GetAddr(ctx context.Context) (string, error)

type BootstrapMode

type BootstrapMode int
const (
	BootstrapModeInvalid BootstrapMode = iota
	BootstrapModeV4
	BootstrapModeV6
)

BootstrapMode

Jump to

Keyboard shortcuts

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