 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateHmac ¶
CalculateHmac calculates the SHA-256 HMAC for the given data and key
func GetDataToSign ¶
func GetDataToSign(notificationRequestItem interface{}) string
    GetDataToSign converts a notification request item to string, which later on can be used for calculating a HMAC
func ValidateHmac ¶
func ValidateHmac(notificationRequestItem notification.NotificationRequestItem, key string) bool
ValidateHmac calculates the HMAC of the notification request item and checks if it matches with the given key
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.