# Functions
CreateHTTPClient 创建 httpClient.
用户统计报警信息.
添加报警信息自定义命名 用于直观原因:passport/odin ==自定义维度,用英文标识异常方法异常类异常简要描述等级 error/warn/info.
InitLog 日志初始化.
No description provided by the author
InitSignal 用户信号量初始化
SIGUSR1: 日志文件重新打开类似 nginx -s reload, 完成日志切割
SIGUSR2: 配置文件重新加载,可以完成比如日志级别的动态改变.
Debug debug日志.
LogError Error日志.
Info Info日志.
Notice Notice日志.
LogWarning Warning日志.
NewContext 构造函数.
NewHTTPConnectionPool http连接池构造函数.
NewHTTPData HTTPData constructor.
NewHTTPDataWithExtra HTTPData constructor with extra data.
No description provided by the author
在每个输出的方法中调用该方法.
RequestFinally 与 RequestMethodFinally 二选一.
# Variables
Log 日志.
http_server_request_duration_seconds,Histogram类型指标,bucket代表duration的分布区间.
# Structs
No description provided by the author
HTTPConnectionPool http连接池.
HTTPData http请求和响应.
No description provided by the author
ServerContext 日志上下文.
# Interfaces
LogInterface log日志接口,实现get path和get log level方法.
No description provided by the author
SignalReload interface.