mirror of
https://github.com/safing/portbase
synced 2025-09-09 13:55:47 +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,8 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/Safing/portbase/database/accessor"
|
||||
)
|
||||
|
||||
type boolCondition struct {
|
||||
|
@ -42,8 +44,8 @@ func newBoolCondition(key string, operator uint8, value interface{}) *boolCondit
|
|||
}
|
||||
}
|
||||
|
||||
func (c *boolCondition) complies(f Fetcher) bool {
|
||||
comp, ok := f.GetBool(c.key)
|
||||
func (c *boolCondition) complies(acc accessor.Accessor) bool {
|
||||
comp, ok := acc.GetBool(c.key)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue