Documentation ¶
Index ¶
- Variables
- func AesCBCDecrypt(_encryptData, _key []byte) ([]byte, error)
- func AesCBCEncrypt(_rawData, _key []byte) ([]byte, error)
- func BytesSha1ToBytes(_srcBytes []byte) ([]byte, error)
- func BytesSha1ToHexString(_srcBytes []byte) (string, error)
- func BytesSha256ToBytes(_srcBytes []byte) ([]byte, error)
- func BytesSha256ToHexString(_srcBytes []byte) (string, error)
- func CheckAndMakeDirs(_dirPath string)
- func CheckExists(_path string) bool
- func CreateCommonRender(_templatesDir string) multitemplate.Renderer
- func FillByte(_fixByteCount int, _fileBuffer *bytes.Buffer)
- func GenUUIDBytes() *bytes.Buffer
- func GenUUIDString(_splitChar string) string
- func GetFileExtName(_fileName string) string
- func HexDecodeBytesToBytes(_src []byte) []byte
- func HexEncodeBytesToBytes(_src []byte) []byte
- func InitRedisClient(_address, _password string, _dbNum int) *redis.Client
- func LoadJsonConfigFile(_confPath string, _pConfig interface{})
- func LoadYamlConfigFile(_confPath string, _pConfig interface{})
- func PKCS7Padding(_cipherText []byte, _blockSize int) []byte
- func PKCS7UnPadding(_originData []byte) []byte
- func ParseJsonString(_data interface{}) string
- func SaveJsonConfigFile(_confPath string, _config ConfigFormat)
- func SaveYamlConfigFile(_confPath string, _config ConfigFormat)
- func StringSha1ToHexString(_srcString string) (string, error)
- func StringSha256ToHexString(_srcString string) (string, error)
- func TestRedisClient(_redisClient *redis.Client) bool
- func ZeroPadding(_cipherText []byte, _blockSize int) []byte
- func ZeroUnPadding(_originData []byte) []byte
- type AppMode
- type ConfigFormat
Constants ¶
This section is empty.
Variables ¶
View Source
var Version string
Functions ¶
func AesCBCDecrypt ¶
func AesCBCEncrypt ¶
aes加密,填充秘钥key的16位,24,32分别对应AES-128, AES-192, or AES-256.
func BytesSha1ToBytes ¶
func BytesSha1ToHexString ¶
func BytesSha256ToBytes ¶
func BytesSha256ToHexString ¶
func CheckAndMakeDirs ¶
func CheckAndMakeDirs(_dirPath string)
func CheckExists ¶
func CreateCommonRender ¶
func CreateCommonRender(_templatesDir string) multitemplate.Renderer
func GenUUIDBytes ¶
func GenUUIDString ¶
func GetFileExtName ¶
func HexDecodeBytesToBytes ¶
func HexEncodeBytesToBytes ¶
func LoadJsonConfigFile ¶
func LoadJsonConfigFile(_confPath string, _pConfig interface{})
func LoadYamlConfigFile ¶
func LoadYamlConfigFile(_confPath string, _pConfig interface{})
func PKCS7UnPadding ¶
func ParseJsonString ¶
func ParseJsonString(_data interface{}) string
func SaveJsonConfigFile ¶
func SaveJsonConfigFile(_confPath string, _config ConfigFormat)
func SaveYamlConfigFile ¶
func SaveYamlConfigFile(_confPath string, _config ConfigFormat)
func StringSha1ToHexString ¶
func StringSha256ToHexString ¶
func TestRedisClient ¶
func ZeroPadding ¶
func ZeroUnPadding ¶
Types ¶
type ConfigFormat ¶
type ConfigFormat interface {
AppMode() string
}
Click to show internal directories.
Click to hide internal directories.