package
0.5.1
Repository: https://github.com/dalefengs/chat-api-proxy.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
CopyStruct 深拷贝结构体.
No description provided by the author
GenHexStr Generate a random hexadecimal string of the specified length.
GetAuthToken header 获取 token.
GetTokenCacheFilePath Get the path of the token cache file.
No description provided by the author
GzipEncode gzip 压缩.
No description provided by the author
MarshalJsonAndGzip 压缩.
No description provided by the author
No description provided by the author
ReadGzipFile 读取 gzip 文件内容.
SetCustomHeaders 设置自定义的响应头.
SetEventStreamHeaders 设置 SSE 的响应头.
SetJsonHeaders 设置非SSE的响应头.
ZipAndWriteToFile 压缩并写入文件.
ZipMarshalAndWriteToFile JSON序列化后压缩并写入文件.