Versions in this module Expand all Collapse all v1 v1.0.4 Oct 31, 2019 Changes in this version + func AESDecrypt(key []byte, ciphertext []byte) ([]byte, bool) + func AESEncrypt(key []byte, plaintext []byte) ([]byte, bool) v1.0.3 Oct 8, 2019 v1.0.2 Oct 8, 2019 v1.0.1 Oct 1, 2019 Changes in this version + var Jsonp = jsoniter.ConfigCompatibleWithStandardLibrary v1.0.0 Sep 25, 2019 Changes in this version + var LayEmptyData = &LayUiPage + var LayErrorData = &LayUiPage + func Base64Decode(s string) ([]byte, error) + func Base64Encode(data []byte) string + func Base64URLDecode(s string) ([]byte, error) + func Base64URLEncode(data []byte) string + func CaptchaCheck(captchaId, verifyValue string) (bool, error) + func CaptchaMP3() (captchaId, base64MP3 string) + func CaptchaMath() (captchaId, base64Png string) + func CaptchaNum() (captchaId, base64Png string) + func DirPing(path string) error + func EasyJwtCheckUserLogin(email string) (token string, err error) + func EasyJwtGeneraToken(data *EasyJwtPayload, hour int) (string, error) + func EasyJwtVerification(jwt string) error + func FielGetSize(filename string) int64 + func FileGetMD5(file *os.File) string + func FileGetPostfix(filename string) (string, error) + func FileGetRandomName(postfilx string) string + func FileGetSha1(file *os.File) string + func FileSaveRenameSimple(name string, data []byte, path string) (string, error) + func FileSaveSimple(name string, data []byte, path string) error + func GenRsaKey(bits int) (e error, priKey string, pubKey string) + func GetFullChinaName() string + func Md5Encode(str string) string + func NewUUID() (string, error) + func NewUUIDSimplicity() (string, error) + func OffsetMath(page, limit int) int + func PathExists(path string) (bool, error) + func Prepend(sc *[]interface{}, value interface{}) *[]interface + func Random(min, max int) int + func ReptileGetSpiderAgent() string + func ReptileGetUserAgent() string + func RsaDecrypt(ciphertext, privateKey []byte) ([]byte, error) + func RsaDecryptSimple(ciphertext, privateKey string) (string, error) + func RsaEncrypt(origData, pubKey []byte) ([]byte, error) + func RsaEncryptSimple(origData, pubKey string) (string, error) + func RsaSign(data, prvKey []byte) ([]byte, error) + func RsaSignSimple(data, prvKey string) (string, error) + func RsaSignVer(data, signature, publicKey []byte) error + func RsaSignVerSimple(data, signature, publicKey string) error + func Sha1Encode(str string) string + func Sha256Encode(str string) string + func SliceDel(sc *[]interface{}, index int) *[]interface + func SuperRand() string + func TimeGetNowTime() int + func TimeGetNowTimeStr() string + func TimeGetStringToTime(times string) (string, error) + func TimeGetTimeToString(times string) (string, error) + func TrimHtml(src string) string + func UrlEncoding(urls string) (string, error) + type EasyJwtPayload struct + Data interface{} + Exp int + Iss string + Msg string + type GoSessionNode struct + func (g *GoSessionNode) Del(id string) error + func (g *GoSessionNode) Expired(id string) bool + func (g *GoSessionNode) Get(id string) (*Session, error) + func (g *GoSessionNode) Set(data *Session) (string, error) + func (g *GoSessionNode) SetTime(data *Session, tim time.Duration) (string, error) + type JwtHeader struct + Alg string + Type string + type JwtPayload struct + Exp string + Iat string + Iss string + Jti string + Nbf string + Sub string + type JwtUtils struct + func NewUtilsToken(prikey string, pubkey string) *JwtUtils + func (t *JwtUtils) GeneraJwtToken(header *JwtHeader, payload *JwtPayload) (string, error) + func (t *JwtUtils) GeneraJwtTokenToData(header *JwtHeader, payload *JwtPayload) (string, error) + func (t *JwtUtils) VerificationToken(jwt string) bool + func (t *JwtUtils) VerificationTokenByData(jwt string) bool + type LayGet struct + Limit int + Page int + type LayUiPage struct + Code int + Count int + Data interface{} + Msg string + func LayPage(count int, data interface{}) *LayUiPage + type ProxySt struct + Password string + ProxyServer string + UserName string + func InitProxy(arg ...string) (*ProxySt, error) + func (p *ProxySt) CheckProxy() error + func (p *ProxySt) ReptileDownloadAndSaveSimple(targerUrl string, cookies []*http.Cookie, name, path string) (string, error) + func (p *ProxySt) ReptileDownloadSimple(targerUrl string, cookies []*http.Cookie) ([]byte, error) + func (p *ProxySt) ReptileSpiderRequestFrom(targerUrl string, body io.Reader, cookies []*http.Cookie) (*http.Response, error) + func (p *ProxySt) ReptileUserRequestFrom(targerUrl string, body io.Reader, cookies []*http.Cookie) (*http.Response, error) + type Session struct + CreationTime int64 + Data map[string]interface{} + ExpirationTime int64 + Identification string + Name string + type SessionInterface interface + Del func(id string) error + Expired func(id string) bool + Get func(id string) (*Session, error) + Set func(data *Session) (string, error) + SetTime func(data *Session, tim time.Duration) (string, error) + func SessionGetByGoCache() SessionInterface