Versions in this module Expand all Collapse all v0 v0.0.3 Nov 12, 2019 Changes in this version + func SignBody(secret, body []byte) []byte v0.0.2 Feb 16, 2018 Changes in this version + var ErrInvalidSignature = errors.New("Invalid signature") + var ErrNoSignature = errors.New("No signature!") + var ErrUnknownMethod = errors.New("Unknown method!") v0.0.1 Aug 5, 2016 Changes in this version + type Hook struct + Event string + Id string + Payload []byte + Signature string + func New(req *http.Request) (hook *Hook, err error) + func Parse(secret []byte, req *http.Request) (hook *Hook, err error) + func (h *Hook) Extract(dst interface{}) error + func (h *Hook) SignedBy(secret []byte) bool