memconservative

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(filename, code string) ([]byte, error)

Types

type GeoIPCache

type GeoIPCache map[string]*router.GeoIP

func (GeoIPCache) Get

func (g GeoIPCache) Get(key string) *router.GeoIP

func (GeoIPCache) Has

func (g GeoIPCache) Has(key string) bool

func (GeoIPCache) Set

func (g GeoIPCache) Set(key string, value *router.GeoIP)

func (GeoIPCache) Unmarshal

func (g GeoIPCache) Unmarshal(filename, code string) (*router.GeoIP, error)

type GeoSiteCache

type GeoSiteCache map[string]*router.GeoSite

func (GeoSiteCache) Get

func (g GeoSiteCache) Get(key string) *router.GeoSite

func (GeoSiteCache) Has

func (g GeoSiteCache) Has(key string) bool

func (GeoSiteCache) Set

func (g GeoSiteCache) Set(key string, value *router.GeoSite)

func (GeoSiteCache) Unmarshal

func (g GeoSiteCache) Unmarshal(filename, code string) (*router.GeoSite, error)

Jump to

Keyboard shortcuts

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