Documentation ¶
Index ¶
- Variables
- func CheckPasshash(password, hash string) bool
- func GeneratePasshash(password string) (string, error)
- func GenerateRoutes() bool
- func GenerateToken(email string) (string, time.Time, error)
- func ParseError(input string) string
- func ReplacePackages(input string) string
- func StructToMap(st interface{}) map[string]interface{}
- type APIEndpoint
- type APIGroup
Constants ¶
This section is empty.
Variables ¶
View Source
var NOW = time.Now().UTC()
NOW generate current datetime
Functions ¶
func CheckPasshash ¶
CheckPasshash check hashed string
func GeneratePasshash ¶
GeneratePasshash create hashed string
func GenerateToken ¶
GenerateToken method untuk generate jwt token
func StructToMap ¶
func StructToMap(st interface{}) map[string]interface{}
StructToMap get map from struct
Types ¶
type APIEndpoint ¶
APIEndpoint struct for api grouping
type APIGroup ¶
type APIGroup struct { GroupName string Base string Child []APIEndpoint }
APIGroup struct for api grouping
Click to show internal directories.
Click to hide internal directories.