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 ¶
BashCompletionProtocol adds bash completion to a protocol flag.
func GetProtocol ¶
GetProtocol returns a protocol from a pflag set.
func GetProtocolValue ¶
GetProtocolValue returns a protocol from a pflag value.
func NewProtocolValue ¶
NewProtocolValue returns new Protocol flag with a default value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.