3
0
corteza/server/pkg/dal/runner.go
2022-11-14 09:26:39 +01:00

20 lines
521 B
Go

package dal
import (
"context"
)
type (
tester interface {
// Test returns a boolean output based on the expression, mostly used for filters
// @todo remove the error and rely on validator so make sure everything is valid
Test(ctx context.Context, params any) (bool, error)
}
evaluator interface {
// Eval returns some value based on the expression, mostly used for attribute eval
// @todo remove the error and rely on validator so make sure eve
Eval(ctx context.Context, params any) (any, error)
}
)