Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
Function to generate an HMAC signature (client-side) This will take any data type (interface{}) and serialize it into a JSON string for signing
func Verify ¶
Function to verify the HMAC signature (server-side) It compares the provided HMAC signature with the generated HMAC for the serialized data
func VerifyRequestBody ¶
func VerifyRequestBody(w http.ResponseWriter, r *http.Request, txn interface{}) bool
VerifyRequestBody reads and verifies the request body and HMAC signature
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.