Documentation
¶
Index ¶
- func ContentValidityCheck(data []byte) bool
- func DecryptData(src []byte, passwd []byte) ([]byte, error)
- func EncryptData(src []byte, passwd []byte) ([]byte, string, error)
- func GenBlake2B(data []byte) string
- func GetNanoID() (string, error)
- func GetUTCTimeHash(masterkey string) string
- func IP2Intstr(ipaddr string) (string, error)
- func IsIPv6(ipdr net.IP) bool
- func Pack2BinData(data []byte) primitive.Binary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentValidityCheck ¶
ContentValidityCheck : Check if has conflicted or empty invalid config in file
func DecryptData ¶
DecryptData : Reverse action as for EncryptData
func EncryptData ¶
EncryptData : ciphertext output as []byte, original text hash output as string
func GenBlake2B ¶
GenBlake2B : Pack Blake2B-256 SUM to hex string
func GetUTCTimeHash ¶
GetUTCTimeHash : MD5 Hash for verification of administration and masterkey
func IP2Intstr ¶
IP2Intstr : this two functions is used to parse X-Real-IP for recording the X-Real-IP can only be done on LB side
func Pack2BinData ¶
Pack2BinData : Used for transfer []byte to binary type in mongodb
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.