Documentation
¶
Overview ¶
Package asnlookup provides ASN and prefix lookup helpers used by test cases.
Index ¶
Constants ¶
View Source
const ( // CodeFound indicates that one or more ASNs were found for the query IP. CodeFound = "AS_FOUND" // CodeEmpty indicates that the source returned no ASN mapping for the query IP. CodeEmpty = "EMPTY_ASN_SET" // CodeError indicates that ASN lookup failed across all configured sources. CodeError = "ERROR_ASN_DATABASE" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Resolver ¶
type Resolver interface {
Recurse(ctx context.Context, name string, qtype string, qclass string) (packet.Packet, error)
}
Resolver defines the DNS recursion interface used by ASN lookup.
Click to show internal directories.
Click to hide internal directories.