123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- package zapx
- import "time"
- const (
- QueueOperateRecord = "clickhouse_operation"
- QueueLogRecord = "clickhouse_log"
- )
- type StringEntry struct {
- Key string `json:"key"`
- Value string `json:"value"`
- }
- type FloatEntry struct {
- Key string `json:"key"`
- Value float64 `json:"value"`
- }
- type IntEntry struct {
- Key string `json:"key"`
- Value int32 `json:"value"`
- }
- type BoolEntry struct {
- Key string `json:"key"`
- Value bool `json:"value"`
- }
- type LogRecord struct {
- EventTime time.Time `json:"eventTime"`
- Category string `json:"category"`
- Level string `json:"level"`
- Caller string `json:"caller"`
- Message string `json:"message"`
- StringEntries []StringEntry `json:"stringEntries"`
- FloatEntries []FloatEntry `json:"floatEntries"`
- IntEntries []IntEntry `json:"intEntries"`
- BoolEntries []BoolEntry `json:"boolEntries"`
- }
|