Statusio is a simple, transparent Go package for accessing version 2.0 of Status.io API.
Successful API queries return native Go structs that can be used immediately, with no need for type assertions.
If you already have the API ID and API KEY for your user, creating the client is simple:
api := statusio.NewStatusioApi("your-api-id", "your-api-key")Executing queries is simple
statusSummary, err := api.StatusSummary("your-statuspage-id")
if err != nil {
log.Fatal(err)
}
fmt.Println(result.Result.Status[0].Containers[0].Status)statusio` implements most of the endpoints defined in the Status.io documentation: http://developers.status.io
For clarity, in most cases, the function name is simply the name of the endpoint (e.g., the endpoint status/summary is provided by the function StatusSummary).
Service and network errors are returned as vanilla error.
