geoip

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Copyright (c) 2021 Kross IAM Project. https://github.com/krossdev/iam-ms/blob/main/LICENSE

Copyright (c) 2021 Kross IAM Project. https://github.com/krossdev/iam-ms/blob/main/LICENSE

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(conf *config.Geoip) error

Types

type City

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

func CityLookup

func CityLookup(ipaddr string, locale string) (*City, error)

lookup city database

func (*City) Continent

func (c *City) Continent() string

Continent return localed continent name

func (*City) Country

func (c *City) Country() string

Country return localed country name

func (*City) Latitude

func (c *City) Latitude() float64

Latitude

func (*City) Longitude

func (c *City) Longitude() float64

Longitude

func (*City) Name

func (c *City) Name() string

Name return localed city name

func (*City) TimeZone

func (c *City) TimeZone() string

Time zone

Jump to

Keyboard shortcuts

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