replace email processing reactions; update deps

This commit is contained in:
Aine
2024-04-30 09:18:04 +03:00
parent 15d61f174e
commit 0e3655195a
35 changed files with 709 additions and 247 deletions

View File

@@ -2,6 +2,7 @@ package healthchecks
import "net/http"
// Option for healthchecks client
type Option func(*Client)
// WithHTTPClient sets the http client
@@ -18,6 +19,13 @@ func WithBaseURL(baseURL string) Option {
}
}
// WithUserAgent sets the user agent
func WithUserAgent(userAgent string) Option {
return func(c *Client) {
c.userAgent = userAgent
}
}
// WithErrLog sets the error log
func WithErrLog(errLog ErrLog) Option {
return func(c *Client) {
@@ -39,6 +47,13 @@ func WithAutoProvision() Option {
}
}
// WithGlobal sets this client as the global client
func WithGlobal() Option {
return func(c *Client) {
global = c
}
}
// WithDone sets the done channel
func WithDone(done chan bool) Option {
return func(c *Client) {