utils

package
v0.0.47 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEntriesFromFiles

func GetEntriesFromFiles(paths []string) ([]string, error)

func GetResolver added in v0.0.32

func GetResolver(dnsServerAddress string, log svc1log.Logger) *net.Resolver

GetResolver returns a new resolver with the given DNS server address. If the DNS server address is empty, the system default resolver is used. If the DNS server address is provided, the resolver is configured to use the given DNS server address.

func ValidateDNSServerAddress added in v0.0.32

func ValidateDNSServerAddress(address string) error

ValidateDNSServerAddress checks if the DNS server address is in the correct format (IP:PORT or HOSTNAME:PORT)

Types

This section is empty.

Jump to

Keyboard shortcuts

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