readers

package
v0.0.0-...-29b9aa7 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	SrcIP   net.IP
	SrcPort string
	DstIP   net.IP
	DstPort string
}

type ConnectionReader

type ConnectionReader struct {
	Dev            string
	ConnectionChan chan Connection
	// contains filtered or unexported fields
}

func (*ConnectionReader) Open

func (cr *ConnectionReader) Open() error

func (*ConnectionReader) Read

func (cr *ConnectionReader) Read() error

type Location

type Location struct {
	Latitude    float64
	Longitude   float64
	CityName    string
	CountryCode string
}

type LocationReader

type LocationReader struct {
	DbPath string
	// contains filtered or unexported fields
}

func (*LocationReader) GetLocationForIP

func (lr *LocationReader) GetLocationForIP(ip net.IP) (Location, error)

func (*LocationReader) Open

func (lr *LocationReader) Open() error

Jump to

Keyboard shortcuts

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