Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type HmacConfig ¶
type HmacConfig struct {
Hash string
Encoding string
SignatureHeader string
TimestampHeader string
SignaturePostProcessor SignaturePostProcessor
MessagePostProcessor MessagePostProcessor
}
type HmacOption ¶
type HmacOption func(*HmacConfig)
func WithMessagePostProcessor ¶
func WithMessagePostProcessor(fn MessagePostProcessor) HmacOption
func WithSignaturePostProcessor ¶
func WithSignaturePostProcessor(fn SignaturePostProcessor) HmacOption
func WithTimestampHeader ¶
func WithTimestampHeader(timestampHeader string) HmacOption
type HmacVerifier ¶
type HmacVerifier struct {
// contains filtered or unexported fields
}
func NewHmacVerifier ¶
func NewHmacVerifier(hash, encoding, signatureHeader string, options ...HmacOption) *HmacVerifier
type HmacVerifyConfig ¶
type SignaturePostProcessor ¶
type StandardWebhooksVerifier ¶
type StandardWebhooksVerifier struct {
}
StandardWebhooksVerifier is standard-webhooks implementation
func NewStandardWebhooksVerifier ¶
func NewStandardWebhooksVerifier() *StandardWebhooksVerifier
Click to show internal directories.
Click to hide internal directories.