Documentation
¶
Index ¶
- func Base64(lngth int) string
- func ByteArray(lngth int) ([]byte, error)
- func ContainsStr(arr []string, search string) (contains bool)
- func GenerateKeys()
- func GenerateToken() string
- func GetBytes(key interface{}) ([]byte, error)
- func HashPassword(pwd string) string
- func LogError(err string, file string, line int)
- func QueryToJson(db *sql.DB, query string, args ...interface{}) ([]byte, error)
- func RemoveValueFromArray(arr []string, val string) []string
- func ValidateHash(pwd string, hash string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsStr ¶
checks if array contains string
func GenerateKeys ¶
func GenerateKeys()
This function generates an RS256 key pair Only if files are not existing
func GetBytes ¶
---------------------------------
DEPRECATED
This function is no longer used ----------------------------------
func QueryToJson ¶
queries every table to json
func RemoveValueFromArray ¶
func ValidateHash ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.