Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lookup ¶
type Lookup struct {
// contains filtered or unexported fields
}
Lookup provides country code lookups from MaxMind GeoLite2-Country database.
func (*Lookup) IsBlocked ¶
IsBlocked returns true if the given IP belongs to a blocked country. Returns the country code and blocked status.
func (*Lookup) SetBlocked ¶
SetBlocked replaces the set of blocked country codes.
Click to show internal directories.
Click to hide internal directories.