ippoller

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPChecker

type IPChecker interface {
	CheckIP(domain string) (ip string, ttl uint32, err error)
}

type IPPoller

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

func New

func New(opts ...Option) *IPPoller

func (*IPPoller) Start

func (p *IPPoller) Start(ctx context.Context, domain string) (chan string, chan error)

type Option

type Option func(*IPPoller)

func WithIPChecker

func WithIPChecker(checker IPChecker) Option

func WithLogger

func WithLogger(logger *logrus.Entry) Option

Jump to

Keyboard shortcuts

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