Documentation ¶
Index ¶
Constants ¶
View Source
const ( ERROR_INVALID_SIGNATURE = -40001 // Signature verification failed ERROR_PARSE_XML = -40002 // Parse XML failed ERROR_CALC_SIGNATURE = -40003 // Calculating the signature failed ERROR_INVALID_AES_KEY = -40004 // Invalid AESKey ERROR_INVALID_APP_ID = -40005 // Check AppID failed ERROR_ENCRYPT_AES = -40006 // AES EncryptionInterface failed ERROR_DECRYPT_AES = -40007 // AES Decryption failed ERROR_INVALID_XML = -40008 // Invaild XML EROOR_BASE64_ENCODE = -40009 // Base64 encoding failed ERROR_BASE64_DECODE = -40010 // Base64 decoding failed ERROR_XML_BULID = -40011 // XML build failed ILLEGAL_BUFFER = -41003 // Illegal buffer )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { AppID string `json:"app_id"` //appid Token string `json:"token"` //token EncodingAESKey string `json:"encoding_aes_key"` BlockSize int }
Config config
type Encryptor ¶
Encryptor encrypotr struct
Click to show internal directories.
Click to hide internal directories.