fb

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serialize

func Serialize(geonames []string, country [4][]string, region [2][]string, city, cityCode []byte) []byte

func SerializeAdmin added in v1.6.0

func SerializeAdmin(name, password []byte) []byte

func SerializeRef added in v1.5.1

func SerializeRef(refs []string, bsi []byte) []byte

Types

type Location

type Location struct {
	Geo                                                    *Str
	CountryAddAlpha, CountryCode, CountryFlag, CountryName *Str
	RegionName, RegionCode                                 *Str
	City, CityCode                                         *roaring.BSI
	// contains filtered or unexported fields
}

func New

func New(data []byte) *Location

func (*Location) Translate

func (g *Location) Translate(region string) []byte

type Str

type Str struct {
	// contains filtered or unexported fields
}

func (*Str) Get

func (g *Str) Get(i int) []byte

func (*Str) Search

func (g *Str) Search(key []byte) (int, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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