models

package
v0.0.0-...-f85bfd4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	ErrorMessage string `json:"error_message"`
}

type Geolocation

type Geolocation struct {
	IPAddress string  `json:"ipaddress"`
	City      string  `json:"city"`
	Country   string  `json:"country"`
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
}

type IP2Location

type IP2Location struct{}

func (*IP2Location) Query

func (this *IP2Location) Query(ipaddress string) Geolocation

type MaxMind

type MaxMind struct{}

func (*MaxMind) Query

func (this *MaxMind) Query(ipaddress string) Geolocation

type Retriever

type Retriever interface {
	Query(ipaddress string) interface{}
}

Jump to

Keyboard shortcuts

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