(filter IFilter)
| 133 | } |
| 134 | |
| 135 | func (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 | |
| 146 | func (f *Handler) Options(scope string) (map[string]*Option, bool) { |
| 147 | options, has := f.options.Get(scope) |
no test coverage detected