eventName returns the normalised event name from whichever field is populated.
()
| 819 | |
| 820 | // eventName returns the normalised event name from whichever field is populated. |
| 821 | func (e proxyEventsEntry) eventName() string { |
| 822 | for _, v := range []string{e.Event, e.Type, e.EventNameSnake, e.EventNameCamel} { |
| 823 | if v = strings.TrimSpace(v); v != "" { |
| 824 | return strings.ToLower(v) |
| 825 | } |
| 826 | } |
| 827 | return "" |
| 828 | } |
| 829 | |
| 830 | // scanSteeringEntries reads all valid steering proxyEventsEntry records from r. |
| 831 | // Lines that fail the quick-keyword check or JSON decoding are silently skipped. |
no test coverage detected