targeting

package
v0.0.0-...-a1df8f8 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TargetGlobal = 1 << iota
	TargetContinent
	TargetCountry
	TargetRegionGroup
	TargetRegion
	TargetASN
	TargetIP
)

Variables

This section is empty.

Functions

func Geo

func Geo() geo.Provider

Geo returns the global geo provider

func Setup

func Setup(gn geo.Provider) error

Setup sets the global geo provider

Types

type TargetOptions

type TargetOptions int

func ParseTargets

func ParseTargets(v string) (tgt TargetOptions, err error)

func (TargetOptions) GetTargets

func (t TargetOptions) GetTargets(ip net.IP, hasClosest bool) ([]string, int, *geo.Location)

func (TargetOptions) String

func (t TargetOptions) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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