Documentation ¶
Index ¶
- Variables
- func DetectingSource(p interfaces.Vendor, script string, retry int, queryServers []string, ...) (in *interfaces.MultiStacks, out *interfaces.MultiStacks)
- func ExecGeoCheck(p interfaces.Vendor, script string, ip string, ...) *interfaces.GeoInfo
- func ExecIpCheck(p interfaces.Vendor, script string, network interfaces.RequestOptionsNetwork) (ipstacks *interfaces.IPStacks)
- func RemoteLookup(p interfaces.Vendor, script string, retry int) *interfaces.IPStacks
- func RunGeoCheck(p interfaces.Vendor, script string, ip string, retry int, ...) *interfaces.GeoInfo
- func RunMMDBCheck(rawIp string) *interfaces.GeoInfo
- type DetectSourceMode
- type Geo
Constants ¶
This section is empty.
Variables ¶
View Source
var GeoCache *obliviousmap.ObliviousMap[*interfaces.GeoInfo]
Functions ¶
func DetectingSource ¶
func DetectingSource(p interfaces.Vendor, script string, retry int, queryServers []string, mode DetectSourceMode) (in *interfaces.MultiStacks, out *interfaces.MultiStacks)
func ExecGeoCheck ¶
func ExecGeoCheck(p interfaces.Vendor, script string, ip string, network interfaces.RequestOptionsNetwork) *interfaces.GeoInfo
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 ¶
func (m *Geo) Type() interfaces.SlaveRequestMacroType
Click to show internal directories.
Click to hide internal directories.