Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 678 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 678 Bytes

glatus

Gleam bindings to the API of the Gatus health check tool.

Package Version Hex Docs

gleam add glatus
import glatus
import gleam/httpc

pub 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 https://hexdocs.pm/glatus.