Documentation
¶
Index ¶
Constants ¶
View Source
const ( SecretKey = "secret" AuthorizationKey = "authorization" Origin = "hoist.ketch.com" )
Variables ¶
View Source
var ( Accepted = errors.New("accepted") BackoffError = newRetryableWebhookError("too many requests") NotAllowedError = newPermanentWebhookError("not allowed") GoneError = newPermanentWebhookError("webhook no longer exists") UnsupportedMediaError = newPermanentWebhookError("webhook does not support this content type") )
Functions ¶
func IsRetryable ¶
Types ¶
type Client ¶
Client is a client for sending requests to Webhooks
func NewClient ¶
func NewClient(ctx context.Context, mode Mode, url string, maxQPS uint64, tls orlop.TLSConfig, auth orlop.KeyConfig, secret orlop.KeyConfig, vault orlop.VaultConfig) (*Client, error)
NewClient returns a new Webhook Client
Click to show internal directories.
Click to hide internal directories.