Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(options *ListOptions) ([]string, error)
List will return list of CIDRs belonging to countries base on ListOptions provided
Types ¶
type ListOptions ¶
type ListOptions struct { // NetworksReader if not provided DBPath will be used to initialize mmdb reader NetworksReader NetworksReader // DBPath file path to mmdb file DBPath string // List of countries and subdivisions to select Countries []Country // IPv4 set to return only this type IPv4 bool // IPv6 set to return only this type IPv6 bool }
ListOptions
Click to show internal directories.
Click to hide internal directories.