dns

package
v0.0.0-...-4b634d0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultServerPort = 53

DefaultServerPort is a default dns server port.

Variables

View Source
var Command = core.NewTestCommand(template, params)

Command is the DNS subcommand.

View Source
var ErrInvalidProtocol = errors.New("invalid protocol")

ErrInvalidProtocol is raised when an unknown protocol is set.

Functions

func BashCompletionProtocol

func BashCompletionProtocol(cmd *cobra.Command, flags *pflag.FlagSet, name string) error

BashCompletionProtocol adds bash completion to a protocol flag.

func GetProtocol

func GetProtocol(f *pflag.FlagSet, name string) (string, error)

GetProtocol returns a protocol from a pflag set.

func GetProtocolValue

func GetProtocolValue(v pflag.Value) (string, error)

GetProtocolValue returns a protocol from a pflag value.

func NewProtocolValue

func NewProtocolValue() pflag.Value

NewProtocolValue returns new Protocol flag with a default value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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