mirror of
https://github.com/safing/portbase
synced 2025-09-10 15:34:26 +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
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue