Versions in this module Expand all Collapse all v0 v0.2.0 Mar 28, 2019 Changes in this version + const ExtendedTokenExpiration + const SecretLength + const StandardTokenExpiration + func CheckPasswordHash(password, hash string) bool + func GenerateJWTSecret() ([]byte, error) + func GenerateJWTToken(uuid string, expiration int64) (string, error) + func HashPassword(password string) string + func IsValidUUID(u string) bool + func LoadJWTSecret(secret []byte) + func QueryBuilder(env *Env, r *http.Request) (storm.Query, error) + func ValidateJWTToken(tokenString string) (*jwt.StandardClaims, error) + type Env struct + ConfigDir string + DataDir string + Db *storm.DB + Validator *validator.Validate + type QueryBuilderParams struct + Filter string + Limit int + OrderBy []string + Reverse bool + Skip int