0
0
Fork 0
mirror of https://github.com/crazy-max/diun.git synced 2025-05-14 03:12:18 +00:00
crazy-max_diun/vendor/github.com/crazy-max/gohealthchecks/doc.go
dependabot[bot] a12e347d9b
chore(deps): bump github.com/crazy-max/gohealthchecks
Bumps [github.com/crazy-max/gohealthchecks](https://github.com/crazy-max/gohealthchecks) from 0.4.1 to 0.5.0.
- [Release notes](https://github.com/crazy-max/gohealthchecks/releases)
- [Commits](https://github.com/crazy-max/gohealthchecks/compare/v0.4.1...v0.5.0)

---
updated-dependencies:
- dependency-name: github.com/crazy-max/gohealthchecks
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-23 07:25:06 +00:00

33 lines
852 B
Go

// Go client library for accessing the Healthchecks API.
//
// Get started:
//
// func main() {
// var err error
// client := gohealthchecks.NewClient(nil)
//
// err = client.Start(context.Background(), gohealthchecks.PingingOptions{
// UUID: "5bf66975-d4c7-4bf5-bcc8-b8d8a82ea278",
// Logs: "Job started!",
// })
// if err != nil {
// log.Fatal(err)
// }
//
// err = client.Success(context.Background(), gohealthchecks.PingingOptions{
// UUID: "5bf66975-d4c7-4bf5-bcc8-b8d8a82ea278",
// Logs: "Job completed!",
// })
// if err != nil {
// log.Fatal(err)
// }
//
// err = client.Fail(context.Background(), gohealthchecks.PingingOptions{
// UUID: "5bf66975-d4c7-4bf5-bcc8-b8d8a82ea278",
// Logs: "Job failed...",
// })
// if err != nil {
// log.Fatal(err)
// }
// }
package gohealthchecks