forked from TrueCloudLab/frostfs-node
[#316] ir/netmap: Rename City node attributes
Rename `City`/`CityCode` attribute keys to `Location`/`LocationCode` respectively. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
9a425924cf
commit
19681693f7
2 changed files with 4 additions and 4 deletions
|
@ -20,8 +20,8 @@ var errMissingRequiredAttr = errors.New("missing required attribute in DB record
|
||||||
// If DB entry R was found w/o errors, then new attributes are:
|
// If DB entry R was found w/o errors, then new attributes are:
|
||||||
// * CountryCode: R.CountryCode().String();
|
// * CountryCode: R.CountryCode().String();
|
||||||
// * Country: R.CountryName();
|
// * Country: R.CountryName();
|
||||||
// * CityCode: R.LocationCode().String();
|
// * LocationCode: R.LocationCode().String();
|
||||||
// * City: Record.LocationName();
|
// * Location: Record.LocationName();
|
||||||
// * SubDivCode: R.SubDivCode();
|
// * SubDivCode: R.SubDivCode();
|
||||||
// * SubDiv: R.SubDivName();
|
// * SubDiv: R.SubDivName();
|
||||||
// * Continent: R.Continent().String().
|
// * Continent: R.Continent().String().
|
||||||
|
|
|
@ -33,8 +33,8 @@ const (
|
||||||
attrKeyCountryCode = "CountryCode"
|
attrKeyCountryCode = "CountryCode"
|
||||||
attrKeyCountry = "Country"
|
attrKeyCountry = "Country"
|
||||||
|
|
||||||
attrKeyLocationCode = "CityCode"
|
attrKeyLocationCode = "LocationCode"
|
||||||
attrKeyLocation = "City"
|
attrKeyLocation = "Location"
|
||||||
|
|
||||||
attrKeySubDivCode = "SubDivCode"
|
attrKeySubDivCode = "SubDivCode"
|
||||||
attrKeySubDiv = "SubDiv"
|
attrKeySubDiv = "SubDiv"
|
||||||
|
|
Loading…
Reference in a new issue