geolocation

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Enriches flows with a geolocation. By default requires RemoteAddr to be set as it populates the RemoteCountry field. Optionally matches both addresses and writes the results to the Src and DstCountry fields.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeoLocation

type GeoLocation struct {
	segments.BaseSegment
	FileName      string // required
	DropUnmatched bool   // optional, default is false, determines whether flows are dropped when location is indeterminate
	MatchBoth     bool   // optional, default is false, determines whether both addresses are matched
	// contains filtered or unexported fields
}

func (GeoLocation) New

func (segment GeoLocation) New(config map[string]string) segments.Segment

func (*GeoLocation) Run

func (segment *GeoLocation) Run(wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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