mjpitz / go-gracefully

A simple, efficient, and easy to use Golang library for implementing application health checks. Features first-class support for stream-based checks.
MIT License
10 stars 1 forks source link

Examples #3

Open mjpitz opened 4 years ago

mjpitz commented 4 years ago

Let's add some examples to show people how to get started. The two that come to mind immediately are:

I really liked the way grpc-go set this up and would like to follow the example they set. The directory structure is:

examples/
  |- features/
    |- periodic-check
    |- stream-check
    |- comparative-check
    |- error-rate-check
  |- integrations/
    |- grpc
    |- http

Each directory contains a main.go file demonstrating the given feature / integration and a README.md that describes how to run it (mostly using go run.