auth

package
v0.0.0-...-73ddacf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

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".

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL