Documentation ¶
Index ¶
- type ApiSLog
- func (sl *ApiSLog) ConfigSLogClientFun(sLogFun SLogFun)
- func (sl *ApiSLog) ConfigSLogResultClientFun(sLogFun SLogFun) *ApiSLog
- func (sl *ApiSLog) Middleware(ctx context.Context, request gorequest.Response)
- func (sl *ApiSLog) MiddlewareCustom(ctx context.Context, api string, request gorequest.Response)
- func (sl *ApiSLog) MiddlewareXml(ctx context.Context, request gorequest.Response)
- type ApiSLogFun
- type GinClient
- type GinClientConfig
- type GinClientFun
- type GinCustomClient
- type GinCustomClientConfig
- type GinCustomClientFun
- type GinCustomClientGinRecordOperation
- type SLog
- type SLogConfig
- type SLogFun
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiSLog ¶ added in v1.0.162
type ApiSLog struct {
// contains filtered or unexported fields
}
ApiSLog 接口日志
func NewApiSlog ¶ added in v1.0.162
func (*ApiSLog) ConfigSLogClientFun ¶ added in v1.0.209
ConfigSLogClientFun 日志配置
func (*ApiSLog) ConfigSLogResultClientFun ¶ added in v1.0.211
ConfigSLogResultClientFun 日志配置然后返回
func (*ApiSLog) Middleware ¶ added in v1.0.162
Middleware 中间件
func (*ApiSLog) MiddlewareCustom ¶ added in v1.0.162
MiddlewareCustom 中间件
type GinClient ¶ added in v1.0.47
type GinClient struct {
// contains filtered or unexported fields
}
GinClient 框架日志
func NewGinClient ¶ added in v1.0.47
func NewGinClient(ctx context.Context, config *GinClientConfig) (*GinClient, error)
NewGinClient 创建框架实例化
func (*GinClient) ConfigSLogClientFun ¶ added in v1.0.163
ConfigSLogClientFun 日志配置
func (*GinClient) ConfigSLogResultClientFun ¶ added in v1.0.211
ConfigSLogResultClientFun 日志配置然后返回
func (*GinClient) Middleware ¶ added in v1.0.52
func (c *GinClient) Middleware() gin.HandlerFunc
Middleware 中间件
type GinClientConfig ¶ added in v1.0.52
GinClientConfig 框架日志配置
type GinCustomClient ¶ added in v1.0.113
type GinCustomClient struct {
// contains filtered or unexported fields
}
GinCustomClient 框架自定义日志
func NewGinCustomClient ¶ added in v1.0.113
func NewGinCustomClient(ctx context.Context, config *GinCustomClientConfig) (*GinCustomClient, error)
func (*GinCustomClient) ConfigSLogClientFun ¶ added in v1.0.164
func (c *GinCustomClient) ConfigSLogClientFun(sLogFun SLogFun)
ConfigSLogClientFun 日志配置
func (*GinCustomClient) ConfigSLogResultClientFun ¶ added in v1.0.211
func (c *GinCustomClient) ConfigSLogResultClientFun(sLogFun SLogFun) *GinCustomClient
ConfigSLogResultClientFun 日志配置然后返回
func (*GinCustomClient) GinRecord ¶ added in v1.0.113
func (c *GinCustomClient) GinRecord(ginCtx *gin.Context) *GinCustomClientGinRecordOperation
GinRecord 记录日志
type GinCustomClientConfig ¶ added in v1.0.210
GinCustomClientConfig 框架自定义日志配置
type GinCustomClientFun ¶ added in v1.0.210
type GinCustomClientFun func() *GinCustomClient
GinCustomClientFun 框架自定义日志驱动
type GinCustomClientGinRecordOperation ¶ added in v1.0.113
type GinCustomClientGinRecordOperation struct {
// contains filtered or unexported fields
}
func (*GinCustomClientGinRecordOperation) CreateData ¶ added in v1.0.113
func (o *GinCustomClientGinRecordOperation) CreateData()
func (*GinCustomClientGinRecordOperation) CreateDataNoError ¶ added in v1.0.113
func (o *GinCustomClientGinRecordOperation) CreateDataNoError()
func (*GinCustomClientGinRecordOperation) CustomInfo ¶ added in v1.0.113
func (o *GinCustomClientGinRecordOperation) CustomInfo(customId any, customType any, customContent any) *GinCustomClientGinRecordOperation
type SLog ¶ added in v1.0.162
type SLog struct {
// contains filtered or unexported fields
}
func (*SLog) WithLogger ¶ added in v1.0.162
WithLogger 跟踪编号
func (*SLog) WithTraceId ¶ added in v1.0.162
WithTraceId 跟踪编号
type SLogConfig ¶ added in v1.0.162
Click to show internal directories.
Click to hide internal directories.