source

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 7 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 {
	SourceType string
	FilePath   string
}

type Source

type Source interface {
	GetEndpoints() ([]*domain.Endpoint, error)
}

Source provide domains that must bound with current IP.

func NewFromConfig

func NewFromConfig(cfg *Config) (Source, error)

func WithResolvedTarget

func WithResolvedTarget(source Source, resolver echoip.Resolver) Source

WithExternalIp replaces targets, returned by Source, with external ip or any resolved IP.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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