Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTimestampToleranceDurationTooSmall = errors.New("WEBHOOK.TIMESTAMP_TOLERANCE_DURATION.TOO_SMALL.ERROR") ErrSignatureMismatch = errors.New("WEBHOOK.SIGNATURE_MISMATCH.ERROR") ErrMessageTimestampMalformed = errors.New("WEBHOOK.MESSAGE.TIMESTAMP_MALFORMED.ERROR") ErrMessageTimestampTooOld = errors.New("WEBHOOK.MESSAGE.TIMESTAMP_TOO_OLD.ERROR") ErrMessageTimestampTooNew = errors.New("WEBHOOK.MESSAGE.TIMESTAMP_TOO_NEW.ERROR") )
View Source
var ( DefaultKeyNs = "epsec" HeaderId = "Webhook-Id" HeaderTimestamp = "Webhook-Timestamp" HeaderSignature = "Webhook-Signature" ToleranceDurationDefault = time.Minute * 5 ToleranceDurationMin = time.Minute MaxKeys = 10 )
Functions ¶
This section is empty.
Types ¶
type VerifyOption ¶
type VerifyOption func(option *VerifyOptions)
func TimestampToleranceDuration ¶
func TimestampToleranceDuration(duration time.Duration) VerifyOption
func TimestampToleranceIgnore ¶
func TimestampToleranceIgnore() VerifyOption
type VerifyOptions ¶
Click to show internal directories.
Click to hide internal directories.