syncer

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	InvocationsBeforeDeregistration int
	RemoveUnknownTgIP               bool
}

type MultiResolver

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

func NewMultiResolver

func NewMultiResolver(logger *zapctx.Logger, dnsServers []string) *MultiResolver

func (*MultiResolver) LookupIPAddr

func (m *MultiResolver) LookupIPAddr(ctx context.Context, host string) ([]net.IPAddr, error)

type Resolver

type Resolver interface {
	LookupIPAddr(ctx context.Context, host string) ([]net.IPAddr, error)
}

type Syncer

type Syncer struct {
	Log        *zapctx.Logger
	State      state.Storage
	Client     elbv2iface.ELBV2API
	Config     Config
	Resolver   Resolver
	SyncFinder state.SyncFinder
}

func (*Syncer) Sync

func (s *Syncer) Sync(ctx context.Context) error

Jump to

Keyboard shortcuts

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