Finish minimal feature set, start with tests

This commit is contained in:
Daniel 2018-09-10 19:01:28 +02:00
parent 3d60431376
commit 06a34f931e
34 changed files with 651 additions and 346 deletions

View file

@ -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
}