mirror of
https://github.com/safing/portbase
synced 2025-09-10 06:15:08 +00:00
Finish minimal feature set, start with tests
This commit is contained in:
parent
3d60431376
commit
06a34f931e
34 changed files with 651 additions and 346 deletions
|
@ -4,6 +4,7 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/Safing/portbase/database/accessor"
|
||||
"github.com/Safing/portbase/utils"
|
||||
)
|
||||
|
||||
|
@ -44,8 +45,8 @@ func newStringSliceCondition(key string, operator uint8, value interface{}) *str
|
|||
|
||||
}
|
||||
|
||||
func (c *stringSliceCondition) complies(f Fetcher) bool {
|
||||
comp, ok := f.GetString(c.key)
|
||||
func (c *stringSliceCondition) complies(acc accessor.Accessor) bool {
|
||||
comp, ok := acc.GetString(c.key)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue