ipChecker

package
v0.0.0-...-68aaf27 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IpChecker

type IpChecker struct {
	// contains filtered or unexported fields
}

func NewIpChecker

func NewIpChecker(dbFile string) *IpChecker

func (IpChecker) GetCountryFromIp

func (ipC IpChecker) GetCountryFromIp(ip string) (*geoip2.Country, error)

func (IpChecker) InWhiteList

func (ipC IpChecker) InWhiteList(whiteListOfCountries []string, ip string) (bool, error)

func (IpChecker) StopIpChecker

func (ipC IpChecker) StopIpChecker()

Jump to

Keyboard shortcuts

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