MCPcopy
hub / github.com/safing/portmaster / Endpoint

Interface Endpoint

service/profile/endpoints/endpoint.go:14–17  ·  view source on GitHub ↗

Endpoint describes an Endpoint Matcher.

Source from the content-addressed store, hash-verified

12
13// Endpoint describes an Endpoint Matcher.
14type Endpoint interface {
15 Matches(ctx context.Context, entity *intel.Entity) (EPResult, Reason)
16 String() string
17}
18
19// EndpointBase provides general functions for implementing an Endpoint to reduce boilerplate.
20type EndpointBase struct { //nolint:maligned // TODO

Callers 11

processQueryMethod · 0.65
testEndpointMatchFunction · 0.65
MatchMethod · 0.65
MatchMultiMethod · 0.65
processQueryMethod · 0.65
notifySubscribersMethod · 0.65
runPostGetHooksMethod · 0.65
runPrePutHooksMethod · 0.65
saveResponseFunction · 0.95
makeReasonMethod · 0.65
ServeHTTPMethod · 0.45

Implementers 9

EndpointDomainservice/profile/endpoints/endpoint-dom
EndpointContinentservice/profile/endpoints/endpoint-con
EndpointIPRangeservice/profile/endpoints/endpoint-ipr
EndpointIPservice/profile/endpoints/endpoint-ip.
EndpointASNservice/profile/endpoints/endpoint-asn
EndpointScopeservice/profile/endpoints/endpoint-sco
EndpointAnyservice/profile/endpoints/endpoint-any
EndpointCountryservice/profile/endpoints/endpoint-cou
EndpointListsservice/profile/endpoints/endpoint-lis

Calls

no outgoing calls

Tested by

no test coverage detected