MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / RegisterFilter

Method RegisterFilter

strategy-filter/filter.go:130–133  ·  view source on GitHub ↗
(filter IFilter)

Source from the content-addressed store, hash-verified

128}
129
130func (f *Handler) RegisterFilter(filter IFilter) {
131 f.filters.Set(filter.Name(), filter)
132 f.setScopes(filter)
133}
134
135func (f *Handler) setScopes(filter IFilter) {
136 for _, scope := range filter.Scopes() {

Callers 3

initFunction · 0.80
initFunction · 0.80
initFunction · 0.80

Calls 3

setScopesMethod · 0.95
SetMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected