sector-f / failoverd

Scriptable daemon for updating routes based on packet loss to endpoints
MIT License
1 stars 0 forks source link

Refactor (or maybe remove) GlobalProbeStats type #1

Closed sector-f closed 1 year ago

sector-f commented 1 year ago

The GlobalProbeStats is kinda ugly right now because it contains a list of Probes and its own resolveMap.

A better approach might be to move the GlobalProbeStats.Get method to be a method of Pinger instead, and add another method to Pinger to get either a slice or a map of ProbeStats for all probes.

sector-f commented 1 year ago

Resolved via 2d60ecc0c43f4d63db1edbcfc6eddabb3ebf5f97