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

Method setScopes

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

Source from the content-addressed store, hash-verified

133}
134
135func (f *Handler) setScopes(filter IFilter) {
136 for _, scope := range filter.Scopes() {
137 tmp, has := f.options.Get(scope)
138 if !has {
139 tmp = eosc.BuildUntyped[string, *Option]()
140 f.options.Set(scope, tmp)
141 }
142 tmp.Set(filter.Name(), filter.Option())
143 }
144}
145
146func (f *Handler) Options(scope string) (map[string]*Option, bool) {
147 options, has := f.options.Get(scope)

Callers 2

RegisterRemoteFilterMethod · 0.95
RegisterFilterMethod · 0.95

Calls 5

ScopesMethod · 0.65
GetMethod · 0.65
SetMethod · 0.65
NameMethod · 0.65
OptionMethod · 0.65

Tested by

no test coverage detected