util

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HostnameMatchesIp

func HostnameMatchesIp(host, ipv4, ipv6 string) bool

func InitLogging

func InitLogging()

func LookupDns

func LookupDns(host string) ([]string, error)

Types

type EmailNotification added in v1.11.0

type EmailNotification struct {
	From     string
	To       []string
	SmtpHost string
	SmtpPort int
	// contains filtered or unexported fields
}

func NewEmailNotification added in v1.11.0

func NewEmailNotification(emailConf *conf.EmailConfig) (*EmailNotification, error)

func (*EmailNotification) NotifyUpdatedIpApplied added in v1.11.0

func (e *EmailNotification) NotifyUpdatedIpApplied(ip *common.DnsRecord) error

func (*EmailNotification) NotifyUpdatedIpDetected added in v1.11.0

func (e *EmailNotification) NotifyUpdatedIpDetected(ip *common.DnsRecord) error

Jump to

Keyboard shortcuts

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