# Functions
AbsFilePath 获取文件绝对路径 DEPRECATED: filepath.Abs instead.
AsBizError 注:如果err为nil *BizError,则返回值nil,true.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CopyBytes 复制字节,参数dst可选,如果传入可用作缓存.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DecryptAesGcm nonce长度必须为12,encrypted最后16位必须为AuthTag.
删除JSON字段,field支持路径,见sjson库文档.
No description provided by the author
DoRetry 参数fn为要重试执行的任务,如果返回nil表示执行成功 fn会被立刻执行1次,如果失败则等待下次重试.
DurationToTomorrow 距离明天零时的剩余时长.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EncodeToken 编码token,返回1个新token 编码格式:header.createdAt.sign
header : 头数据(可选),每个值使用hex编码,多个值用点号分隔 createdAt : 时间戳(秒数),表示token的创建日期 sign : 签名,算法为hmac_sha512(header.createdAt,key)->hex->to_lower_case
举例:
key : abc header : 1.2 createdAt : 1617013547 token : 31.32.1617013547.e94ab5002db7ad2019576739f63044805cd87da52667f6bae48a39591e2b2932bb2eb0db4e6096d9bf95ffa4eabf5c9c70b08d1e4bc6389751e24aa68ee8b6ac.
EncryptAesCbc key长度必须是16,24,32,分别对应aes128, aes192, aes256,iv长度必须为16.
EncryptAesGcm key长度必须是16,24,32,分别对应aes128, aes192, aes256。 NonceSize为12,AuthTagSize为16。所以nonce长度必须为12,rs最后16字节为AuthTag 其他语言加密结果可能不包含AuthTag,或者默认AuthTagSize不等于16.
No description provided by the author
No description provided by the author
ForEachFileLineBytes 遍历每行数据 注意:回调函数传入的line将在遍历下1条记录时被覆盖,如需复用需先复制.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetFileLastModTime 获取文件最近修改时间,如果操作系统禁用文件修改时间,则总是返回0.
获取JSON字段值,field支持路径,见jsonitor文档.
No description provided by the author
获取plain的md5值,并转换为hex.
获取plain哈希值,算法hmac_sha512.
No description provided by the author
IsFilePathExist 如果返回false,则保证对应路径不存在。如果返回true,则不能保证真的存在.
No description provided by the author
此错误可能来自GetJSONField().LastError().
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ListenQuitSignalFromStdIn 监听来自stdin的退出信号 通过stdio传递退出信号,发送退出信号参考 WriteSignal() windows进程不支持退出信号,以下方案适用于启动windows子进程.
Log 输出到标准日志,参数格式同Sprintf.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MustMkdirAll 创建目录并返回目录绝对路径.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewBizError args参数格式:err / format,args..
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewEnglishPrinter 可格式化显示千分位.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
固定间隔时长重试计数器.
No description provided by the author
No description provided by the author
步进间隔时长重试计数器.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ParseAndCheckToken 解析后检验token是否有效,校验通过返回解析后的token对象 如果参数ttl大于0,则token的时间戳超过+-ttl视为已过期.
获取JSON字段值,field支持路径,见jsonitor文档,如果解析出错,返回可读性错误 注:jsonitor转换整数字段值类似js,比如字段值为`11abc`,则调用q.ToInt()返回整数11,且q.LastError()为空.
No description provided by the author
No description provided by the author
No description provided by the author
解析Unix时间戳,参数v可以是string/int/int64/uint64,秒或毫秒(10/13位).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
取值范围[min,max).
取值范围[min,max).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
设置JSON字段值,field支持路径,见sjson库文档.
Sprintf 参数args格式:err或format,args...或err,format,args...
No description provided by the author
ToCent 转换金额(单位:元)为金额(单位:分),最多支持2位小数,如果超出则忽略多余小数.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
错误码,建议自定义业务错误码使用6位数,前3位可表示http响应状态码.
错误码,建议自定义业务错误码使用6位数,前3位可表示http响应状态码.
错误码,建议自定义业务错误码使用6位数,前3位可表示http响应状态码.
错误码,建议自定义业务错误码使用6位数,前3位可表示http响应状态码.
错误码,建议自定义业务错误码使用6位数,前3位可表示http响应状态码.
错误码,建议自定义业务错误码使用6位数,前3位可表示http响应状态码.
错误码,建议自定义业务错误码使用6位数,前3位可表示http响应状态码.
错误码,建议自定义业务错误码使用6位数,前3位可表示http响应状态码.
错误码,建议自定义业务错误码使用6位数,前3位可表示http响应状态码.
错误码,建议自定义业务错误码使用6位数,前3位可表示http响应状态码.
错误码,建议自定义业务错误码使用6位数,前3位可表示http响应状态码.
错误码,建议自定义业务错误码使用6位数,前3位可表示http响应状态码.
错误码,建议自定义业务错误码使用6位数,前3位可表示http响应状态码.
错误码,建议自定义业务错误码使用6位数,前3位可表示http响应状态码.
错误码,建议自定义业务错误码使用6位数,前3位可表示http响应状态码.
错误码,建议自定义业务错误码使用6位数,前3位可表示http响应状态码.
错误码,建议自定义业务错误码使用6位数,前3位可表示http响应状态码.
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
DefaultFixedSizeBytesBufferPool 每个缓存大小默认为4KB.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BytesBuffer 不固定大小字节缓存,使用完应调用Close().
No description provided by the author
FixedSizeBytesBufferPool 固定大小字节缓存池.
Provider 可用于动态提供JSON解析用的val(指针).
No description provided by the author
# Interfaces
重试计数器.