mirror of
https://github.com/safing/portbase
synced 2025-09-10 23:34:42 +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 intCondition struct {
|
||||
|
@ -58,8 +60,8 @@ func newIntCondition(key string, operator uint8, value interface{}) *intConditio
|
|||
}
|
||||
}
|
||||
|
||||
func (c *intCondition) complies(f Fetcher) bool {
|
||||
comp, ok := f.GetInt(c.key)
|
||||
func (c *intCondition) complies(acc accessor.Accessor) bool {
|
||||
comp, ok := acc.GetInt(c.key)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue