Documentation ¶
Index ¶
- func AesDecryptECB(encrypted []byte) (decrypted []byte)
- func AesEncryptECB(data string) (encrypted []byte)
- func ApiRequest(eapiOption EapiOption, options RequestData) (result, header string, err error)
- func ChooseUserAgent() string
- func CreateNewRequest(data string, url string, options RequestData) (answer, resHeader string, err error)
- func DetectFileType(file []byte) (fileType, fileSubtype string)
- func EapiRequest(eapiOption EapiOption, options RequestData) (result, header string, err error)
- func Format2Params(str string) (data string)
- func ImageSize(file []byte) (width, height int, err error)
- func MarkerAesDecryptECB(encrypted []byte) (decrypted []byte)
- func MarkerAesEncryptECB(data string) (encrypted []byte)
- func RandHex(n int) []byte
- func RawRequest(url string, options RequestData) (result string, err error)
- func ReadFile(filePath string) ([]byte, error)
- func SpliceStr(path string, data string) (result string)
- type EapiOption
- type Headers
- type RequestData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApiRequest ¶
func ApiRequest(eapiOption EapiOption, options RequestData) (result, header string, err error)
ApiRequest 用于非 eapi (即返回 body 未加密的 API) 请求
func CreateNewRequest ¶
func CreateNewRequest(data string, url string, options RequestData) (answer, resHeader string, err error)
CreateNewRequest 创建 eapi 请求
func DetectFileType ¶
DetectFileType 检测文件类型
func EapiRequest ¶
func EapiRequest(eapiOption EapiOption, options RequestData) (result, header string, err error)
EapiRequest eapi 请求
func MarkerAesDecryptECB ¶ added in v0.1.3
MarkerAesDecryptECB 163 key 解密
func MarkerAesEncryptECB ¶ added in v0.1.3
MarkerAesEncryptECB 163 key 加密
func RawRequest ¶
func RawRequest(url string, options RequestData) (result string, err error)
RawRequest 用于上传文件
Types ¶
type EapiOption ¶
EapiOption eapi 请求所需要的参数
Click to show internal directories.
Click to hide internal directories.