Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizerByIP ¶
type AuthorizerByIP struct {
// contains filtered or unexported fields
}
func NewAuthorizerByIPApi ¶
func NewAuthorizerByIPApi() *AuthorizerByIP
func (AuthorizerByIP) IsAuthorized ¶
func (a AuthorizerByIP) IsAuthorized(ip any) (bool, error)
IsAuthorized returns true if IP from Cyprus using ipapi.co. true for "country_code_iso3": "CYP".
Click to show internal directories.
Click to hide internal directories.