package
0.0.0-20230301081111-79ba34714ab8
Repository: https://github.com/truecloudlab/frostfs-node.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
ContinentFromString returns Continent value corresponding to the passed string representation.
CountryCodeFromString parses a string UN/LOCODE country code and returns a CountryCode.
CountryFromColumn converts a UN/LOCODE country code to a CountryCode.
FillDatabase generates the FrostFS location database based on the UN/LOCODE table.
LocationCodeFromString parses a string UN/LOCODE location code and returns a LocationCode.
LocationFromColumn converts a UN/LOCODE country code to a LocationCode.
LocodeRecord returns the record from the FrostFS location database corresponding to the string representation of UN/LOCODE.
NewKey calculates Key from LOCODE.
NewPoint creates, initializes and returns a new Point.
NewRecord calculates the Record from the UN/LOCODE table record.
PointFromCoordinates converts a UN/LOCODE coordinates to a Point.
# Constants
ContinentAfrica corresponds to Africa.
ContinentAntarctica corresponds to Antarctica.
ContinentAsia corresponds to Asia.
ContinentEurope corresponds to Europe.
ContinentNorthAmerica corresponds to North America.
ContinentOceania corresponds to Oceania.
ContinentSouthAmerica corresponds to South America.
ContinentUnknown is an undefined Continent value.
# Variables
ErrAirportNotFound is returned by AirportRecord readers when the required airport is not found.
No description provided by the author
No description provided by the author
# Structs
AirportRecord represents the entry in FrostFS airport database.
Key represents the key in FrostFS location database.
Point represents a 2D geographic point.
Record represents the entry in FrostFS location database.
# Interfaces
AirportDB is an interface of FrostFS airport database.
ContinentsDB is an interface of FrostFS continent database.
DB is an interface of FrostFS location database.
NamesDB is an interface of the FrostFS location namespace.
SourceTable is an interface of the UN/LOCODE table.
# Type aliases
Continent is an enumeration of Earth's continent.
CountryCode represents a country code for the storage in the FrostFS location database.
LocationCode represents a location code for the storage in the FrostFS location database.