Documentation ¶
Index ¶
- func AESDecryptECB(data, key []byte) []byte
- func AesDecrypt(point string, key string) string
- func AesEncrypt(data, key string) string
- func AesEncryptToBytes(data, key []byte) []byte
- func CurrentAbPath() (dir string)
- func GetEnOrChLength(text string) int
- func GetUuid() string
- func ImageToRGBA(img image.Image) *image.RGBA
- func OpenPngImage(src string) image.Image
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func RandString(codeLen int) string
- func RandomInt(min, max int) int
- type CacheUtil
- type FontUtil
- type ImageUtil
- func (i *ImageUtil) Base64() (string, error)
- func (i *ImageUtil) DecodeImageToFile()
- func (i *ImageUtil) IsOpacity(x, y int) bool
- func (i *ImageUtil) SetArtText(text string, fontsize int, point vo.PointVO) error
- func (i *ImageUtil) SetPixel(rgba color.RGBA, x, y int)
- func (i *ImageUtil) SetText(text string, fontsize int, color color.RGBA)
- func (i *ImageUtil) VagueImage(x int, y int)
- type RedisUtil
- func (l *RedisUtil) Clear()
- func (l *RedisUtil) Delete(key string)
- func (l *RedisUtil) Exists(key string) bool
- func (l *RedisUtil) Get(key string) string
- func (l *RedisUtil) InitConfigRedis(rdsAddr []string, dbUserName, dbPassword string, enableCluster bool, db int)
- func (l *RedisUtil) Set(key string, val string, expiresInSeconds int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESDecryptECB ¶
func AesDecrypt ¶
func AesEncrypt ¶
func AesEncryptToBytes ¶
func GetEnOrChLength ¶
func PKCS5Padding ¶
func RandString ¶
Types ¶
type CacheUtil ¶
func NewCacheUtil ¶
type ImageUtil ¶
type ImageUtil struct { Src string SrcImage image.Image RgbaImage *image.RGBA FontPath string Width int Height int }
func (*ImageUtil) DecodeImageToFile ¶
func (i *ImageUtil) DecodeImageToFile()
DecodeImageToFile 将图片转换为新的文件 调试使用
func (*ImageUtil) SetArtText ¶
SetArtText 为图片设置文字
Source Files ¶
Click to show internal directories.
Click to hide internal directories.