utils

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

* @Author: alexander.huang * @Date: 2022-05-19 03:10:11 * @Last Modified by: alexander.huang * @Last Modified time: 2022-05-18 03:10:11

* @Author: alexander.huang * @Date: 2022-05-18 19:10:11 * @Last Modified by: alexander.huang * @Last Modified time: 2022-05-18 19:10:11

* @Author: alexander.huang * @Date: 2022-05-19 01:14:50 * @Last Modified by: alexander.huang * @Last Modified time: 2022-05-23 21:40:51

* @Author: alexander.huang * @Date: 2022-05-19 01:14:50 * @Last Modified by: alexander.huang * @Last Modified time: 2022-05-23 21:40:51

* @Author: alexander.huang * @Date: 2022-05-19 03:10:11 * @Last Modified by: alexander.huang * @Last Modified time: 2022-05-18 03:10:11

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BcryptMake

func BcryptMake(pwd []byte) string

encryption

func BcryptMakeCheck

func BcryptMakeCheck(pwd []byte, hashedPwd string) bool

check pwd

func CheckName

func CheckName(name string) bool

func CheckPasswd

func CheckPasswd(passwd string) bool

func GetSnapshot

func GetSnapshot(videoPath, snapshotPath string, frameNum int) (snapshotName string)

GetSnapshot 生成视频缩略图并保存(作为封面)

func MD5

func MD5(str []byte, b ...byte) string

func NewS3Client

func NewS3Client() *s3.Client

func PathExists

func PathExists(path string) (bool, error)

judge path exist

func RandString

func RandString(len int) string

func StrToInt32

func StrToInt32(str string) int32

func StrToInt64

func StrToInt64(str string) int64

func StrToUint32

func StrToUint32(str string) uint64

func StrToUint64

func StrToUint64(str string) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL