Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound AS not found. ErrNotFound = errors.New("AS not found") )
Functions ¶
Types ¶
type AutonomousSystem ¶
type AutonomousSystem struct { // Number (aka ASN) is the unique identifier for an Autonomous System. Number uint32 }
AutonomousSystem represents an Autonomous System on the Internet.
type Database ¶
type Database interface { encoding.BinaryMarshaler encoding.BinaryUnmarshaler // Lookup returns the AutonomousSystem for a given net.IP. Lookup(net.IP) (AutonomousSystem, error) }
Database stores mappings between IP addresses and Autonomous Systems.
Click to show internal directories.
Click to hide internal directories.