memconservative

package
v0.0.0-...-07af6e5 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT 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]*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 (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)

Jump to

Keyboard shortcuts

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