MaxTypeID returns the maximum event type (hook id) value.
()
| 248 | |
| 249 | // MaxTypeID returns the maximum event type (hook id) value. |
| 250 | func MaxTypeID() uint16 { |
| 251 | types := AllWithState() |
| 252 | ids := make([]uint16, len(types)) |
| 253 | for i, t := range types { |
| 254 | ids[i] = t.HookID() |
| 255 | } |
| 256 | return slices.Max(ids) |
| 257 | } |
| 258 | |
| 259 | // TypeToEventInfo maps the event type to the structure storing detailed information about the event. |
| 260 | func TypeToEventInfo(typ Type) Info { |
no test coverage detected