Documentation
¶
Index ¶
- Constants
- Variables
- func Contains(a []string, x string) bool
- func ConvertFromByte(data []byte, result interface{}) error
- func ConvertFromReader(data io.Reader, result interface{}) error
- func ConvertToByte(data interface{}) ([]byte, error)
- func ConvertToWriter(out io.Writer, data interface{}) error
- func CreateToken(username, database string, config map[string]interface{}) (result string, err error)
- func Find(a []string, x string) int
- func GetHash(text string) string
- func GetMessage(key string) string
- func ParseToken(tokenString string, keyMap map[string]map[string]string, ...) (map[string]interface{}, error)
- func RandString(length int) string
- func SMAtoIMA(sRows []map[string]string) (iRows []map[string]interface{})
- func StringToDateTime(value string) (time.Time, error)
- func ToBoolean(value interface{}, defValue bool) bool
- func ToFloat(value interface{}, defValue float64) float64
- func ToIntPointer(value interface{}, defValue int64) *int64
- func ToInteger(value interface{}, defValue int64) int64
- func ToRGBA(value interface{}, defValue color.RGBA) color.RGBA
- func ToString(value interface{}, defValue string) string
- func ToStringPointer(value interface{}, defValue string) *string
- func TokenDecode(tokenString string) (map[string]interface{}, error)
Constants ¶
View Source
const AdminMsg = "static/locales/admin.json"
Variables ¶
View Source
var Report embed.FS
View Source
var Static embed.FS
Functions ¶
func ConvertFromByte ¶
func ConvertFromReader ¶
func ConvertToByte ¶
func ConvertToWriter ¶
func CreateToken ¶
func CreateToken(username, database string, config map[string]interface{}) (result string, err error)
CreateToken - create/refresh a Nervatura JWT token
func Find ¶
Find returns the smallest index i at which x == a[i], or len(a) if there is no such index.
func ParseToken ¶
func ParseToken(tokenString string, keyMap map[string]map[string]string, config map[string]interface{}) (map[string]interface{}, error)
ParseToken - Parse, validate, and return a token data.
func RandString ¶
func StringToDateTime ¶
StringToDateTime - parse string to datetime
func ToIntPointer ¶
ToIntPointer - safe *int64 conversion
func ToStringPointer ¶
ToStringPointer - safe *string conversion
func TokenDecode ¶
TokenDecode - decoded JWT token but doesn't validate the signature.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.