Documentation
¶
Index ¶
- Variables
- func ConsoleMysqlExecLogFunc(ctx context.Context, ts time.Duration, args interface{}, err error)
- func ConsoleRedisExecLogFunc(ctx context.Context, ts time.Duration, args interface{}, err error)
- type ForEach
- type Iterator
- type KafkaLoggerFunc
- type Key
- type OptionStatus
- type RedisExecLogFunc
- type RepoExecLogFunc
- type Zero
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTraceKey = options.DefaultTraceKey
Functions ¶
func ConsoleMysqlExecLogFunc ¶ added in v0.1.2
ConsoleRedisExecLogFunc print the message to console
Types ¶
type KafkaLoggerFunc ¶ added in v0.1.1
type KafkaLoggerFunc func(msg string, args ...interface{})
msg: 消息 args: 参数
type OptionStatus ¶
type OptionStatus int8
const ( OptionStatusContinue OptionStatus = 1 // 流程未完成,需要继续执行 OptionStatusBreak OptionStatus = 2 // 流程已完成,可以返回结果了 )
type RedisExecLogFunc ¶ added in v0.1.1
RedisExecLogFunc is called each time when a redis command is executed. The "ts" parameter gives the time that the command takes to execute, args refer the exec params err refer to the result of the execution.
type RepoExecLogFunc ¶ added in v0.1.2
RepoExecLogFunc is called each time when read or write from database
Click to show internal directories.
Click to hide internal directories.