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

@ -1,10 +1,14 @@
package query
import "fmt"
import (
"fmt"
"github.com/Safing/portbase/database/accessor"
)
// Condition is an interface to provide a common api to all condition types.
type Condition interface {
complies(f Fetcher) bool
complies(acc accessor.Accessor) bool
check() error
string() string
}