Documentation
¶
Index ¶
- Variables
- func SetSecretResolver(resolver secret.Resolver)
- type Config
- type HTTP
- func (h *HTTP) ExtractWebhookParams(ctx context.Context, req *stdhttp.Request, body []byte) (map[string]string, error)
- func (h *HTTP) Fire(ctx context.Context) error
- func (h *HTTP) FireWithParams(ctx context.Context, params map[string]string) error
- func (h *HTTP) ID() uuid.UUID
- func (h *HTTP) Listen(ctx context.Context)
- func (h *HTTP) MergeParams(params map[string]string) map[string]string
- func (h *HTTP) Path() string
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidSignature = errors.New("invalid signature") ErrReplayedRequest = errors.New("replayed request") )
Functions ¶
func SetSecretResolver ¶
Types ¶
type Config ¶
type Config struct {
Path string `json:"path,omitempty"`
Secret string `json:"secret,omitempty"`
SignatureScheme string `json:"signatureScheme,omitempty"`
SignatureHeader string `json:"signatureHeader,omitempty"`
TimestampHeader string `json:"timestampHeader,omitempty"`
MaxTimestampAge string `json:"maxTimestampAge,omitempty"`
ParamMapping map[string]string `json:"paramMapping,omitempty"`
DefaultParams map[string]string `json:"defaultParams,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.