Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidHeader = errors.New("webhook has invalid WorkOS header") ErrNoValidSignature = errors.New("webhook had no valid signature") ErrNotSigned = errors.New("webhook has no WorkOS header") ErrInvalidTimestamp = errors.New("webhook has an invalid timestamp") ErrOutsideTolerance = errors.New("webhook has a timestamp that is out of tolerance") )
This represents the list of errors that could be raised when using the webhook package.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
The Client used to interact with Webhooks.
func (*Client) SetNow ¶
Sets the function used to determine the current time. Usually you'll only need to call this for testing purposes.
func (*Client) SetTolerance ¶
Sets the maximum time tolerance between now and when the webhook timestamp was issued.
Click to show internal directories.
Click to hide internal directories.