MCPcopy Create free account
hub / github.com/buggregator/server / HTTPIngestionHandler

Interface HTTPIngestionHandler

internal/module/module.go:46–55  ·  view source on GitHub ↗

HTTPIngestionHandler decides if an HTTP request belongs to a module.

Source from the content-addressed store, hash-verified

44
45// HTTPIngestionHandler decides if an HTTP request belongs to a module.
46type 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.
58type BaseModule struct{}

Callers 14

InitMethod · 0.65
buildPipelineFunction · 0.65
handlerNameFunction · 0.65
dumpSpiesFunction · 0.65
ingestViaHandlerFunction · 0.65
ServeHTTPMethod · 0.65
MatchMethod · 0.65
RunMethod · 0.65
StartHTTPFunction · 0.65
ingestViaHandlerFunction · 0.65
RegisterAPIFunction · 0.65

Implementers 6

handlermodules/sentry/handler.go
handlermodules/ray/handler.go
handlermodules/profiler/handler.go
handlermodules/inspector/handler.go
handlermodules/httpdumps/handler.go
handlermodules/sms/handler.go

Calls

no outgoing calls

Tested by

no test coverage detected