Documentation ¶
Overview ¶
Package webhook contains the functionality for handling outcoming webhooks.
Index ¶
Constants ¶
View Source
const ( // DefaultTimeoutSeconds is the number of seconds before a timeout occurs // when sending a webhook DefaultTimeoutSeconds = 10 // MinHTTPStatusErrorCode is the lower bound of HTTP status codes which // indicate an error occurred MinHTTPStatusErrorCode = 400 // SignatureHeader is the name of the HTTP header which contains the // webhook signature SignatureHeader = "X-Gophish-Signature" // Sha256Prefix is the prefix that specifies the hashing algorithm used // for the signature Sha256Prefix = "sha256" )
Variables ¶
This section is empty.
Functions ¶
func SendAll ¶
func SendAll(endPoints []EndPoint, data interface{})
SendAll sends data to multiple EndPoints
func SetTransport ¶
SetTransport sets the underlying transport for the default webhook client.
Types ¶
Click to show internal directories.
Click to hide internal directories.