Documentation ¶
Index ¶
- Variables
- func CheckCaptcha(captchaId string, captcha string) (result bool)
- func CreateDir(path string)
- func CreateToken(claim Claim) (tokenString string, err error)
- func DesDecrypt(data string, key []byte) string
- func DesEncrypt(origData []byte, key []byte) string
- func DirIsExist(path string) (result bool, err error)
- func HttpGet(url string) (responseStr string, err error)
- func HttpPost(url string, request interface{}) (responseStr string, err error)
- func HttpPostStr(url string, request string) (responseStr string, err error)
- func MD5(str string) string
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- type Captcha
- type Claim
Constants ¶
This section is empty.
Variables ¶
View Source
var ContentType = "application/json"
View Source
var SigningKey = []byte("AllYourBase")
Functions ¶
func CheckCaptcha ¶
func CreateToken ¶
func DirIsExist ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.