util

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 11 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
	SmtpUsername string
	// 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.ResolvedIp) error

func (*EmailNotification) NotifyUpdatedIpDetected added in v1.11.0

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

Jump to

Keyboard shortcuts

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