MCPcopy Create free account
hub / github.com/github/gh-aw / eventName

Method eventName

pkg/cli/token_usage.go:821–828  ·  view source on GitHub ↗

eventName returns the normalised event name from whichever field is populated.

()

Source from the content-addressed store, hash-verified

819
820// eventName returns the normalised event name from whichever field is populated.
821func (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.

Callers 2

scanSteeringEntriesFunction · 0.95

Calls 1

ToLowerMethod · 0.80

Tested by

no test coverage detected