HTTPIngestionHandler decides if an HTTP request belongs to a module.
| 44 | |
| 45 | // HTTPIngestionHandler decides if an HTTP request belongs to a module. |
| 46 | type HTTPIngestionHandler interface { |
| 47 | // Priority determines ordering. Lower runs first. HttpDumps = 9999. |
| 48 | Priority() int |
| 49 | |
| 50 | // Match returns true if this module should handle the request. |
| 51 | Match(r *http.Request) bool |
| 52 | |
| 53 | // Handle processes the request and returns the event to store. |
| 54 | Handle(r *http.Request) (*event.Incoming, error) |
| 55 | } |
| 56 | |
| 57 | // BaseModule provides no-op defaults for optional Module methods. |
| 58 | type BaseModule struct{} |
no outgoing calls
no test coverage detected