controllers

package
v0.0.0-...-22e2dce Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QQWryPath        = "qqwry.dat"
	ZXIPv6WryPath    = "zxipv6wry.db"
	GeoLite2CityPath = "GeoLite2-City.mmdb"
	IPIPFreePath     = "ipipfree.ipdb"
	Ip2RegionPath    = "ip2region.db"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MainController

type MainController struct {
	web.Controller
}

func (*MainController) Get

func (this *MainController) Get()

func (*MainController) GetAll

func (this *MainController) GetAll()

func (*MainController) GetAllJSON

func (this *MainController) GetAllJSON()

func (*MainController) GetAllXML

func (this *MainController) GetAllXML()

func (*MainController) GetCharset

func (this *MainController) GetCharset()

func (*MainController) GetConnection

func (this *MainController) GetConnection()

func (*MainController) GetEncoding

func (this *MainController) GetEncoding()

func (*MainController) GetForwarded

func (this *MainController) GetForwarded()

func (*MainController) GetGeo

func (this *MainController) GetGeo()

func (*MainController) GetHost

func (this *MainController) GetHost()

func (*MainController) GetIP

func (this *MainController) GetIP()

func (*MainController) GetKeepAlive

func (this *MainController) GetKeepAlive()

func (*MainController) GetLang

func (this *MainController) GetLang()

func (*MainController) GetLocationFromGeoIP2

func (this *MainController) GetLocationFromGeoIP2()

func (*MainController) GetLocationFromIP2Region

func (this *MainController) GetLocationFromIP2Region()

func (*MainController) GetLocationFromIPIP

func (this *MainController) GetLocationFromIPIP()

func (*MainController) GetLocationFromQQWry

func (this *MainController) GetLocationFromQQWry()

func (*MainController) GetMime

func (this *MainController) GetMime()

func (*MainController) GetPort

func (this *MainController) GetPort()

func (*MainController) GetUserAgent

func (this *MainController) GetUserAgent()

func (*MainController) GetVia

func (this *MainController) GetVia()

func (*MainController) QueryGeoip2

func (this *MainController) QueryGeoip2(ip string) (string, error)

func (*MainController) QueryIP2Region

func (this *MainController) QueryIP2Region(ip string) (string, error)

func (*MainController) QueryIPIPFree

func (this *MainController) QueryIPIPFree(ip string) (string, error)

func (*MainController) QueryQQWry

func (this *MainController) QueryQQWry(ip string) (string, error)

Jump to

Keyboard shortcuts

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