dns

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: GPL-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTagValue

func GetTagValue(myStruct interface{}, myField string, myTag string) string

func PrettyPrint

func PrettyPrint(myStruct any, w io.Writer, tags ...string)

PrettyPrint tries to print a struct to io.writer as a table with optional list of tags being printed too note that this function should have been moved to `cmd` but since it's being used as a Marshaller, it's been moved to here to facilitate importing.

func QueryMX

func QueryMX(ctx context.Context, client dnsclient.Client, fqdn string) ([]mkdns.RR, time.Duration, error)

func QueryTXT

func QueryTXT(ctx context.Context, client dnsclient.Client, fqdn string) ([]mkdns.RR, time.Duration, error)

func StructFormatter

func StructFormatter(myStruct any, tags ...string) (rows []table.Row)

Types

This section is empty.

Jump to

Keyboard shortcuts

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