dvgeolocation

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Overview

********************************************************************** MicroCore Copyright 2020 - 2020 by Danyil Dobryvechir (dobrivecher@yahoo.com ddobryvechir@gmail.com) ***********************************************************************

Index

Constants

This section is empty.

Variables

View Source
var CountryInfo map[string]string

Functions

func GetAddressWithoutPort

func GetAddressWithoutPort(ip string) string

func GetIPAddress

func GetIPAddress(r *http.Request) string

func Init

func Init() bool

func IsIP6UsedAsIP4Container

func IsIP6UsedAsIP4Container(ipBuf []byte) bool

func LookupCountryCode

func LookupCountryCode(ip []byte) (string, error)

func LookupDbInit

func LookupDbInit(srcIP4, srcIP6 string, countryPropertiesSrc string, activate int) error

func PlaceGeoInfo

func PlaceGeoInfo(r *http.Request, params map[string]string)

func ReadIP

func ReadIP(ip string) (ipBuf []byte, ok bool)

func ReadIP4

func ReadIP4(ip string) (ipBuf []byte, ok bool)

func ReadIP4ToBuf

func ReadIP4ToBuf(ip string, ipBuf []byte, pos int) bool

func ReadIP6

func ReadIP6(ip string) (ipBuf []byte, ok bool)

func ReadIPOrString

func ReadIPOrString(src string) (ipBuf []byte, ok bool)

func ReadString

func ReadString(ip string) (ipBuf []byte, ok bool)

func ReadStringToBuf

func ReadStringToBuf(buf []byte, size int, ipStr string) bool

func WriteBufAsHex

func WriteBufAsHex(ipBuf []byte) string

func WriteBufAsNumber

func WriteBufAsNumber(ipBuf []byte) string

func WriteBufInAllPresentations

func WriteBufInAllPresentations(data []byte) string

func WriteIP

func WriteIP(ipBuf []byte, onlyOne bool) string

func WriteIP4

func WriteIP4(ipBuf []byte) string

func WriteIP6

func WriteIP6(ipBuf []byte) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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