Versions in this module Expand all Collapse all v0 v0.11.0 Nov 7, 2022 Changes in this version + var ErrCodeNotFound = errors.New("code not found") + var ErrFailedToReadBytes = errors.New("failed to read bytes") + var ErrFailedToReadExpectedLenBytes = errors.New("failed to read expected length of bytes") + var ErrInvalidGeodataFile = errors.New("invalid geodata file") + var ErrInvalidGeodataVarintLength = errors.New("invalid geodata varint length") + func Decode(filename, code string) ([]byte, error) + func EmitBytes(f io.ReadSeeker, code string) ([]byte, error) + type GeodataLoader interface + LoadGeoIP func(country string) ([]*v2router.CIDR, error) + LoadGeoSite func(list string) ([]*v2router.Domain, error) + LoadIP func(filename, country string) ([]*v2router.CIDR, error) + LoadSite func(filename, list string) ([]*v2router.Domain, error) + func NewGeodataLoader() GeodataLoader