locode: Add command to list all locodes #24

Merged
fyrchik merged 2 commits from acid-ant/frostfs-locode-db:feature/list-all-locodes into master 2025-03-12 08:48:24 +00:00
Member

Close #13

Example output:

$ ./frostfs-locode-db list --db locode_db
...
RU LED	 59.88 30.25
RU MOW	 55.75 37.60
...

Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com

Close #13 Example output: ``` $ ./frostfs-locode-db list --db locode_db ... RU LED 59.88 30.25 RU MOW 55.75 37.60 ... ``` Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
acid-ant added 2 commits 2025-03-12 07:23:35 +00:00
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
requested reviews from storage-core-committers, storage-core-developers 2025-03-12 07:23:35 +00:00
acid-ant reviewed 2025-03-12 07:25:03 +00:00
@ -167,0 +170,4 @@
// Returns an error if unable to unmarshal data from DB.
//
// Must not be called before successful Open call.
func (db *DB) IterateOverLocodes(f func(string, locodedb.Point)) error {
Author
Member

locodedb.Point required for geoDistance metric in frostfs-node.

`locodedb.Point` required for `geoDistance` metric in `frostfs-node`.
dstepanov-yadro approved these changes 2025-03-12 07:28:29 +00:00
elebedeva approved these changes 2025-03-12 07:29:55 +00:00
a-savchuk approved these changes 2025-03-12 07:44:53 +00:00
fyrchik approved these changes 2025-03-12 08:48:18 +00:00
fyrchik merged commit 1c14038948 into master 2025-03-12 08:48:24 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-locode-db#24
No description provided.