geo

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "GEO"

Variables

This section is empty.

Functions

func GeoIP

func GeoIP() *v2router.GeoIPList

func GeoSite

func GeoSite() *v2router.GeoSiteList

Types

type DynamicConfig

type DynamicConfig struct {
	Geo GeoConfig `json:"geo" yaml:"geo"`
}

func (*DynamicConfig) Init

func (dconfig *DynamicConfig) Init() error

func (*DynamicConfig) Priority

func (dconfig *DynamicConfig) Priority() int

type GeoConfig

type GeoConfig struct {
	Enabled         bool   `json:"enabled" yaml:"enabled"`
	GeoIPFilename   string `json:"geoip" yaml:"geoip"`
	GeoSiteFilename string `json:"geosite" yaml:"geosite"`
}

Jump to

Keyboard shortcuts

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