-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use local IDs in scraper, global IDs in pusher
In order to avoid confusion as to which kind of ID is expected where, introduce a model package that takes a synthetic_monitoring.Check and produces a wrapped one that has the IDs decoded. Introduce a model.GlobaID type to make it explicit which kind of ID is expected. In the scraper use local IDs, except for the lists of checks, which need to use a global one. In the publisher, use global IDs. This allows the compiler to flag misuses.
- Loading branch information
Showing
15 changed files
with
371 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.