Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GeoIPCache ¶
type GeoIPCache map[string]*routercommon.GeoIP
func (GeoIPCache) Get ¶
func (g GeoIPCache) Get(key string) *routercommon.GeoIP
func (GeoIPCache) Has ¶
func (g GeoIPCache) Has(key string) bool
func (GeoIPCache) Set ¶
func (g GeoIPCache) Set(key string, value *routercommon.GeoIP)
func (GeoIPCache) Unmarshal ¶
func (g GeoIPCache) Unmarshal(filename, code string) (*routercommon.GeoIP, error)
type GeoSiteCache ¶
type GeoSiteCache map[string]*routercommon.GeoSite
func (GeoSiteCache) Get ¶
func (g GeoSiteCache) Get(key string) *routercommon.GeoSite
func (GeoSiteCache) Has ¶
func (g GeoSiteCache) Has(key string) bool
func (GeoSiteCache) Set ¶
func (g GeoSiteCache) Set(key string, value *routercommon.GeoSite)
func (GeoSiteCache) Unmarshal ¶
func (g GeoSiteCache) Unmarshal(filename, code string) (*routercommon.GeoSite, error)
Click to show internal directories.
Click to hide internal directories.