https://github.com/lpil/glatus
Gleam bindings to the API of the Gatus health check tool
https://github.com/lpil/glatus
Last synced: about 2 months ago
JSON representation
Gleam bindings to the API of the Gatus health check tool
- Host: GitHub
- URL: https://github.com/lpil/glatus
- Owner: lpil
- Created: 2023-11-10T12:55:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-22T19:35:14.000Z (5 months ago)
- Last Synced: 2025-02-16T11:55:03.341Z (3 months ago)
- Language: Gleam
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-gleam - glatus - [📚](https://hexdocs.pm/glatus/) - Gleam bindings to the API of the Gatus health check tool (Packages / API Clients)
README
# glatus
Gleam bindings to the API of the Gatus health check tool.
[](https://hex.pm/packages/glatus)
[](https://hexdocs.pm/glatus/)```sh
gleam add glatus
```
```gleam
import glatus
import gleam/httpcpub fn main() {
// Build a request
let request =
glatus.statuses_request(host: "status.lpil.uk", page: 1)// Send the request with a HTTP client
let assert Ok(response) = httpc.send(request)// Decode the response
let information = glatus.handle_statuses_response(response)
}
```Documentation can be found at .