Documentation ¶
Index ¶
- Variables
- func CreateDir(dirs ...string) (err error)
- func GenerateFilenameByUploadDatetime(filename string) (string, error)
- func GenerateRedisKey()
- func GetCover(videoPath string, imgPath string, time string) error
- func GetCoverURLByFilename(filename string) string
- func GetIntersection(slice1 []int64, slice2 []int64) []int64
- func GetPlayURLByFilename(filename string) string
- func GetSysDatetime() string
- func ParseDuration(d string) (time.Duration, error)
- func PathExists(path string) (bool, error)
- type CustomClaims
- type JWT
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GenerateRedisKey ¶
func GenerateRedisKey()
func GetCoverURLByFilename ¶
func GetIntersection ¶
func GetPlayURLByFilename ¶
func GetSysDatetime ¶
func GetSysDatetime() string
func PathExists ¶
Types ¶
type CustomClaims ¶
type CustomClaims struct { UserInfo model.UserInfo jwt.StandardClaims }
type JWT ¶
type JWT struct {
SigningKey []byte
}
func (*JWT) CreateToken ¶
CreateToken 创建 token
func (*JWT) ParseToken ¶
func (j *JWT) ParseToken(tokenString string) (*CustomClaims, error)
ParseToken 解析 token
Click to show internal directories.
Click to hide internal directories.