(timeMachine bool, evtType int, process bool)
| 46 | } |
| 47 | |
| 48 | func MakeEvent(timeMachine bool, evtType int, process bool) Event { |
| 49 | evt := Event{ |
| 50 | Parsed: make(map[string]string), |
| 51 | Meta: make(map[string]string), |
| 52 | Unmarshaled: make(map[string]any), |
| 53 | Enriched: make(map[string]string), |
| 54 | ExpectMode: LIVE, |
| 55 | Process: process, |
| 56 | Type: evtType, |
| 57 | } |
| 58 | if timeMachine { |
| 59 | evt.ExpectMode = TIMEMACHINE |
| 60 | } |
| 61 | |
| 62 | return evt |
| 63 | } |
| 64 | |
| 65 | func (e *Event) SetMeta(key string, value string) bool { |
| 66 | if e.Meta == nil { |
no outgoing calls
no test coverage detected
searching dependent graphs…