replace email processing reactions; update deps
This commit is contained in:
15
vendor/gitlab.com/etke.cc/go/healthchecks/v2/options.go
generated
vendored
15
vendor/gitlab.com/etke.cc/go/healthchecks/v2/options.go
generated
vendored
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user