Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientOption ¶
type ClientOption func(h *HTTPClient)
func WithMaxBackoffDuration ¶
func WithMaxBackoffDuration(maxBackoffDuration time.Duration) ClientOption
WithMaxBackoffDuration allows for a configurable backoff duration configuration.
type HTTPClient ¶
HTTPClient allows for sending the event payload to a configured webhook service.
func NewHTTPClient ¶
func NewHTTPClient(logger *zap.Logger, url, signingSecret string, opts ...ClientOption) *HTTPClient
NewHTTPClient is the constructor for a HTTPClient.
type Sink ¶
type Sink struct {
// contains filtered or unexported fields
}
Sink is a structure in charge of sending Audits to a configured webhook at a URL.
func (*Sink) SendAudits ¶
Click to show internal directories.
Click to hide internal directories.