Documentation
¶
Overview ¶
Package aftership is AfterShip Tracking's webhook protocol: its calls are signed, with the account's webhook secret, in aftership-hmac-sha256, and say what happened, and their delivery, in the body's event, and event_id
https://www.aftership.com/docs/tracking/webhook/webhook-signature
Index ¶
- Constants
- type Protocol
- func (Protocol) Decode(header http.Header, body []byte) (json.RawMessage, error)
- func (Protocol) Handshake(*http.Request, string) ([]byte, bool)
- func (Protocol) Headers() []string
- func (Protocol) Identify(_ http.Header, values json.RawMessage) (string, string)
- func (Protocol) Name() string
- func (Protocol) Verify(header http.Header, body []byte, secret string) error
Constants ¶
const (
// Name is the protocol's name
Name = "aftership"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.