Skip to main content

Module utils

Module utils 

Source
Expand description

工具模块 (Utilities)

提供全项目共用的工具函数和类型:

子模块说明
jwtJWT Token 生成与解析
context请求上下文(当前登录组员)
page内存分页辅助
fast_jsonsimd-json 高性能序列化
cos_sts腾讯云 COS STS 临时凭证
cos_presignCOS 预签名 URL 生成
cos_cdnCDN 鉴权 URL 生成
shanghai_timeUTC+8 时间工具
rss_labelsRSS 文案/标签生成
query_deserializeQuery 参数反序列化辅助宏
error_log统一错误日志记录
agent_debugNDJSON Agent 调试日志

Re-exports§

pub use context::MemberContext;
pub use jwt::JwtUtil;
pub use page::paginate;

Modules§

agent_debug
Agent Debug NDJSON 日志
context
请求上下文 (Request Context)
cos_cdn
腾讯云 CDN TypeD 鉴权链接生成
cos_presign
腾讯云 COS 预签名 URL 生成
cos_sts
腾讯云 COS STS 临时密钥
error_log
错误日志记录 (Error Log)
fast_json
simd-json / serde_json 双路径 JSON 工具
jwt
JWT 工具 (JSON Web Token Utilities)
page
分页辅助工具 (Pagination Utilities)
query_deserialize
Query 参数反序列化辅助 (Query Deserialization)
rss_labels
RSS 文案生成工具 (RSS Label Utilities)
shanghai_time
东八区时间工具 (Shanghai Time)