(global *global.Global, event *event.Event)
| 81 | } |
| 82 | |
| 83 | func NewParser(global *global.Global, event *event.Event) *Parser { |
| 84 | var journalIdx uint64 |
| 85 | if journal.Enabled { |
| 86 | journalIdx = global.Journal.GetIndex() |
| 87 | } |
| 88 | |
| 89 | return &Parser{ |
| 90 | global: global, |
| 91 | event: event, |
| 92 | |
| 93 | errs: make(chan error, 2), |
| 94 | begin: time.Now().UTC(), |
| 95 | |
| 96 | journalIdx: journalIdx, |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | func decodeRawProto(depth int, enc map[string]any, buf []byte) error { |
| 101 | if depth > 100 { |
no test coverage detected