module
Version:
v0.0.0-...-7957c1d
Opens a new window with list of versions in this module.
Published: Nov 13, 2018
License: MIT
Opens a new window with license information.
README
¶
stackpath-urlauth
Golang library to sign Stackpath CDN URLs. This prevents tampering and allows for automatic expiration of URLs.
Details on the Stackpath 'Secure Tokens' feature are available on the Stackpath Support site.
Example
import ("github.com/muxinc/stackpath-urlauth/urlauth")
inputURL := "https://www.example.com/foo?client_id=abc123&foo=bar"
secret := "supersecret"
expirationTime := startTime.Add(time.Hour * 6)
signedURL, err := urlauth.SignURL(inputURL, secret, expirationTime)
Directories
¶
Click to show internal directories.
Click to hide internal directories.