Documentation ¶
Index ¶
- Constants
- func ConvertByteSliceToHex(arr []byte) string
- func GenerateRandomString(length int, alphabet string) string
- func GenerateScryptHash(s string) string
- func GetBaseDomain(host string) string
- func IsAllowedOrigin(origin, host string, allowedSubdomains []string) bool
- func IsWithinExpiration(expiration int64) bool
- func ParseCookie(str string) map[string]string
- func SerializeCookie(name, val string, options *CookieAttributes) (string, error)
- func ValidateScryptHash(s, hash string) bool
- type CookieAttributes
Constants ¶
View Source
const DEFAULT_ALPHABET = "abcdefghijklmnopqrstuvwxyz1234567890"
Variables ¶
This section is empty.
Functions ¶
func ConvertByteSliceToHex ¶
func GenerateRandomString ¶
func GenerateScryptHash ¶
func GetBaseDomain ¶
func IsAllowedOrigin ¶
func IsWithinExpiration ¶
func ParseCookie ¶
func SerializeCookie ¶
func SerializeCookie(name, val string, options *CookieAttributes) (string, error)
func ValidateScryptHash ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.