Documentation
¶
Index ¶
- Constants
- type MainController
- func (this *MainController) Get()
- func (this *MainController) GetAll()
- func (this *MainController) GetAllJSON()
- func (this *MainController) GetAllXML()
- func (this *MainController) GetCharset()
- func (this *MainController) GetConnection()
- func (this *MainController) GetEncoding()
- func (this *MainController) GetForwarded()
- func (this *MainController) GetGeo()
- func (this *MainController) GetHost()
- func (this *MainController) GetIP()
- func (this *MainController) GetKeepAlive()
- func (this *MainController) GetLang()
- func (this *MainController) GetLocationFromGeoIP2()
- func (this *MainController) GetLocationFromIP2Region()
- func (this *MainController) GetLocationFromIPIP()
- func (this *MainController) GetLocationFromQQWry()
- func (this *MainController) GetMime()
- func (this *MainController) GetPort()
- func (this *MainController) GetUserAgent()
- func (this *MainController) GetVia()
- func (this *MainController) QueryGeoip2(ip string) (string, error)
- func (this *MainController) QueryIP2Region(ip string) (string, error)
- func (this *MainController) QueryIPIPFree(ip string) (string, error)
- func (this *MainController) QueryQQWry(ip string) (string, error)
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)
Click to show internal directories.
Click to hide internal directories.