utils

package
v0.0.0-...-c371f03 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSms

func CheckSms(phone string, code string) bool

func ConvertDate

func ConvertDate(in int64) (out string)

func Delete

func Delete(file string) (err error)

func GetMD5

func GetMD5(param string) string

func GetPasswordSalt

func GetPasswordSalt() string

func GetRandomString

func GetRandomString(length int) string

func GetSHA1

func GetSHA1(param string) string

func GetUuid

func GetUuid() (result string)

func InitLoginFilter

func InitLoginFilter(ctx *context.Context)

func RequestFilter

func RequestFilter(ctx *context.Context)

func SendVerifySms

func SendVerifySms(phone string) bool

func Upload

func Upload(path string) (err error)

func UserLoginFilter

func UserLoginFilter(ctx *context.Context)

Types

type PutRet

type PutRet struct {
	Hash string `json:"hash"`
	Key  string `json:"key"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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