Documentation ¶
Index ¶
- Variables
- func ApiRequest(eapiOption EapiOption, options RequestData) (result string, header http.Header, err error)
- func CacheKeyEncrypt(data string) (encrypted []byte)
- func ChooseUserAgent() string
- func CreateNewRequest(data string, url string, options RequestData) (answer string, resHeader http.Header, err error)
- func DetectFileType(file []byte) (fileType, fileSubtype string)
- func EapiDecrypt(encrypted []byte) (decrypted []byte)
- func EapiEncrypt(data string) (encrypted []byte)
- func EapiRequest(eapiOption EapiOption, options RequestData) (result string, header http.Header, err error)
- func Format2Params(str string) (data string)
- func ImageSize(file []byte) (width, height int, err error)
- func MarkerDecrypt(encrypted []byte) (decrypted []byte)
- func MarkerEncrypt(data string) (encrypted []byte)
- func RandHex(n int) []byte
- func RawRequest(url string, options RequestData) (result string, err error)
- func ReadFile(filePath string) (b []byte, err error)
- func SetLogger(logger Logger)
- func SpliceStr(path string, data string) (result string)
- type EapiOption
- type Headers
- type Logger
- type RequestData
Constants ¶
This section is empty.
Variables ¶
View Source
var DEBUG bool
DEBUG 是否开启打印调试信息
Functions ¶
func ApiRequest ¶
func ApiRequest(eapiOption EapiOption, options RequestData) (result string, header http.Header, err error)
ApiRequest 返回内容未加密的 API 请求
func CacheKeyEncrypt ¶ added in v0.1.10
CacheKeyEncrypt cache_key 加密
func CreateNewRequest ¶
func CreateNewRequest(data string, url string, options RequestData) (answer string, resHeader http.Header, err error)
CreateNewRequest 创建 eapi 请求
func DetectFileType ¶
DetectFileType 检测文件类型
func EapiDecrypt ¶ added in v0.1.10
EapiDecrypt eapi 解密
func EapiEncrypt ¶ added in v0.1.10
EapiEncrypt eapi 加密
func EapiRequest ¶
func EapiRequest(eapiOption EapiOption, options RequestData) (result string, header http.Header, err error)
EapiRequest 返回内容加密的 API 请求
func MarkerDecrypt ¶ added in v0.1.10
MarkerDecrypt 163 key 解密
func MarkerEncrypt ¶ added in v0.1.10
MarkerEncrypt 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.