Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nadiamoe/hetzner
https://github.com/nadiamoe/hetzner
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nadiamoe/hetzner
- Owner: nadiamoe
- Created: 2021-03-06T15:44:45.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-26T11:52:19.000Z (almost 2 years ago)
- Last Synced: 2024-12-27T05:04:22.647Z (9 days ago)
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hetzner
Hetzner provides a mechanism to receive alerts when Hetzner servers matching requirements become available.
## Design
This package features a modular, object-oriented design which should make integration easy:
- The `Scrapper` function, which returns a list of servers
+ `HetznerScrape()` Implements this for Hetzner
- The `Checker` object, which compares the list of servers returned by `Scrapper` with a reference one. Additionally, it handles running the whole thing periodically.
- The `Alerter` object, which tracks matching servers and invokes the user defined `Send` function. Alerter keeps track of recently notified servers for you.In the provided `cmd/telegram.go` file, a very simple integration sending alerts to a Telegram chat can be seen.