updated deps; updated healthchecks.io integration

This commit is contained in:
Aine
2024-04-07 14:42:12 +03:00
parent 271a4a0e31
commit 15d61f174e
122 changed files with 3432 additions and 4613 deletions

View File

@@ -0,0 +1,29 @@
package healthchecks
import (
"fmt"
"github.com/google/uuid"
)
// DefaultAPI base url for checks
const DefaultAPI = "https://hc-ping.com"
// ErrLog used to log errors occurred during an operation
type ErrLog func(operation string, err error)
// DefaultErrLog if you don't provide one yourself
var DefaultErrLog = func(operation string, err error) {
fmt.Printf("healtchecks operation %q failed: %v\n", operation, err)
}
// New healthchecks client
func New(options ...Option) *Client {
rid, _ := uuid.NewRandom()
c := &Client{
rid: rid.String(),
}
c.init(options...)
return c
}