ipchecker

package
v0.0.0-...-40baeb0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSClient

type DNSClient interface {
	Exchange(*dns.Msg, string) (*dns.Msg, time.Duration, error)
}

type IPChecker

type IPChecker struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *IPChecker

func (*IPChecker) CheckIP

func (c *IPChecker) CheckIP(domain string) (ip string, ttl uint32, err error)

type Option

type Option func(*IPChecker)

func WithDNSClient

func WithDNSClient(dns DNSClient) Option

func WithLogger

func WithLogger(logger *logrus.Entry) Option

func WithServerAddr

func WithServerAddr(serverAddr string) Option

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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