geo

package
v0.0.0-...-10a0d72 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func DetectingSource

func DetectingSource(p interfaces.Vendor, script string, retry int, queryServers []string, mode DetectSourceMode) (in *interfaces.MultiStacks, out *interfaces.MultiStacks)

func ExecIpCheck

func ExecIpCheck(p interfaces.Vendor, script string, network interfaces.RequestOptionsNetwork) (ipstacks *interfaces.IPStacks)

func RemoteLookup

func RemoteLookup(p interfaces.Vendor, script string, retry int) *interfaces.IPStacks

func RunGeoCheck

func RunGeoCheck(p interfaces.Vendor, script string, ip string, retry int, network interfaces.RequestOptionsNetwork) *interfaces.GeoInfo

func RunMMDBCheck

func RunMMDBCheck(rawIp string) *interfaces.GeoInfo

Types

type DetectSourceMode

type DetectSourceMode int
const (
	DSMDefault DetectSourceMode = iota
	DSMInOnly
	DSMOutOnly
)

type Geo

type Geo struct {
	InStacks  interfaces.MultiStacks
	OutStacks interfaces.MultiStacks
}

func (*Geo) Run

func (m *Geo) Run(proxy interfaces.Vendor, r *interfaces.SlaveRequest) error

func (*Geo) Type

Jump to

Keyboard shortcuts

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