Documentation ¶
Index ¶
- Constants
- func CheckPasswordHash(password, hash string) bool
- func CreateToken(obj map[string]interface{}, secret string) (string, error)
- func CurrentTime() int64
- func GetHostIP() string
- func GetHostPort(addr string) (string, string)
- func HashPassword(password string) (string, error)
- func ParseToken(tokenStr string, secret string) (string, int64, map[string]interface{}, error)
- func ToStrings(t []interface{}) []string
- func Uuid() string
Constants ¶
View Source
const DEFAULT_SECRET = "gocoresec"
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func CurrentTime ¶
func CurrentTime() int64
func GetHostPort ¶
func HashPassword ¶
func ParseToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.