Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiZapLog ¶ added in v1.0.141
type ApiZapLog struct {
// contains filtered or unexported fields
}
func NewApiZapLog ¶ added in v1.0.141
func NewApiZapLog(ctx context.Context, config *ApiZapLogConfig) *ApiZapLog
func (*ApiZapLog) Middleware ¶ added in v1.0.141
Middleware 中间件
func (*ApiZapLog) MiddlewareCustom ¶ added in v1.0.141
MiddlewareCustom 中间件
type ApiZapLogConfig ¶ added in v1.0.141
type ApiZapLogFun ¶ added in v1.0.141
type ApiZapLogFun func() *ApiZapLog
ApiZapLogFun *ApiClient 驱动
type ConfigGinCustomClient ¶ added in v1.0.113
type ConfigGinCustomClient struct { IpService *goip.Client // ip服务 GormClientFun dorm.GormClientTableFun // 日志配置 CurrentIp string // 当前ip }
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(config *GinClientConfig) (*GinClient, error)
NewGinClient 创建框架实例化
func (*GinClient) GormCustomTableDelete ¶ added in v1.0.69
GormCustomTableDelete 删除数据 - 自定义表名
func (*GinClient) GormDelete ¶ added in v1.0.52
GormDelete 删除
func (*GinClient) Middleware ¶ added in v1.0.52
func (c *GinClient) Middleware() gin.HandlerFunc
Middleware 中间件
type GinClientConfig ¶ added in v1.0.52
type GinClientConfig struct { IpService *goip.Client // ip服务 GormClientFun dorm.GormClientTableFun // 日志配置 ZapLog *ZapLog // 日志服务 CurrentIp string // 当前ip }
GinClientConfig 框架实例配置
type GinCustomClient ¶ added in v1.0.113
type GinCustomClient struct {
// contains filtered or unexported fields
}
func NewGinCustomClient ¶ added in v1.0.113
func NewGinCustomClient(config *ConfigGinCustomClient) (*GinCustomClient, error)
func (*GinCustomClient) GinRecord ¶ added in v1.0.113
func (c *GinCustomClient) GinRecord(ginCtx *gin.Context) *GinCustomClientGinRecordOperation
GinRecord 记录日志
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() error
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 ZapLog ¶ added in v1.0.52
type ZapLog struct {
// contains filtered or unexported fields
}
func NewZapLog ¶ added in v1.0.52
func NewZapLog(config *ZapLogConfig) *ZapLog
func (*ZapLog) WithLogger ¶ added in v1.0.52
WithLogger 跟踪编号
func (*ZapLog) WithTraceId ¶ added in v1.0.52
WithTraceId 跟踪编号
type ZapLogConfig ¶ added in v1.0.52
type ZapLogConfig struct { LogPath string // 日志文件路径 LogName string // 日志文件名 MaxSize int // 单位为MB,默认为512MB MaxBackups int // 保留旧文件的最大个数 MaxAge int // 文件最多保存多少天 0=不删除 LocalTime bool // 采用本地时间 Compress bool // 是否压缩日志 JsonFormat bool // 是否输出为json格式 ShowLine bool // 显示代码行 LogInConsole bool // 是否同时输出到控制台 }
Click to show internal directories.
Click to hide internal directories.