| 1 |
package model |
| 2 |
|
| 3 |
import "time" |
| 4 |
|
| 5 |
type KV struct { |
| 6 |
Key string |
| 7 |
Value string |
| 8 |
} |
| 9 |
|
| 10 |
type Structured struct { |
| 11 |
Time time.Time |
| 12 |
Level string |
| 13 |
Msg string |
| 14 |
KVs []KV |
| 15 |
} |
| 16 |
|
| 17 |
type Event struct { |
| 18 |
Raw []byte |
| 19 |
Structured *Structured |
| 20 |
} |