util

package
v0.0.0-...-ef2a1cc Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromGOB

func FromGOB(ba []byte) *dns.Msg

func ToGOB

func ToGOB(dnsResp dns.Msg) []byte

Types

type AppConfig

type AppConfig struct {
	ServerAddr   string `yaml:"serverAddr`
	ServerPort   int    `yaml:"serverPort"`
	ResolverAddr string `yaml:resolverAddr`
	ResolverPort int    `yaml: resolverPort`
}

func LoadConfig

func LoadConfig(name string) (*AppConfig, error)

Jump to

Keyboard shortcuts

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