# Functions
添加日志字段到日志中间件(ctx_logrus),添加的字段会在后面调用 info,debug,error 时候输出.
添加日志字段到日志中间件(ctx_logrus),添加的字段会在后面调用 info,debug,error 时候输出.
添加一个追踪规矩id 用来聚合同一次请求, 注意要用返回的contxt 替换传入的ctx.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
为了方便创建一个默认的Logger.
为了方便创建一个默认的Logger.
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
导出ctx_logrus日志库.
导出requestId.
No description provided by the author
No description provided by the author
No description provided by the author
先从缓存读取数据,如果不存在调用 call方法获取后在存放到数据库中.
baseurl:="https://api.weixin.qq.com/cgi-bin".
parse clientType by userAgent.
No description provided by the author
No description provided by the author
No description provided by the author
分页时候使用 lastId 最后一个id ,limit分页大小.
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
GET https://api.weixin.qq.com/cgi-bin/template/get_all_private_template?access_token=ACCESS_TOKEN.
No description provided by the author
获取一个加密后的userCode.
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
POST https://api.weixin.qq.com/cgi-bin/template/api_add_template?access_token=ACCESS_TOKEN.
http请求方式:POST https://api.weixin.qq.com/cgi-bin/template/del_private_template?access_token=ACCESS_TOKEN.
POST https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN.
POST https://api.weixin.qq.com/cgi-bin/template/api_set_industry?access_token=ACCESS_TOKEN.
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
添加logrus.Entry到context, 这个操作添加的logrus.Entry在后面AddFields和Extract都会使用到.
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
# 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
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
TemplateRenderer 自定义模板渲染器.
# Type aliases
isEmpty 当从数据库拿不到数据时候是否缓存一个空的数据.