Documentation
¶
Overview ¶
Package asn provides ASN (Autonomous System Number) verification for bots.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidatePrefix ¶
ValidatePrefix checks if a prefix is valid for ASN cache. Returns false for loopback, multicast, unspecified, or /0 prefixes.
Types ¶
type RIPEData ¶
type RIPEData struct {
Data struct {
Prefixes []struct {
Prefix string `json:"prefix"`
} `json:"prefixes"`
} `json:"data"`
}
type RouteViews ¶
RouteViews fetches ASN prefixes from RouteViews API.
func NewRouteViews ¶
func NewRouteViews() *RouteViews
Click to show internal directories.
Click to hide internal directories.