Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSource ¶
type DataSource interface {
// Get retrieves a value from the data source by path.
// Path is a dot-separated string (e.g., "path.id", "query.page").
// Returns the value and true if found, nil and false otherwise.
Get(path string) (any, bool)
}
DataSource represents a source of data for runtime expressions.
type Evaluator ¶
type Evaluator interface {
AddSource(name string, source DataSource)
Evaluate(expr string) (any, error)
}
Evaluator evaluates runtime expressions using available data sources.
func NewEvaluator ¶
func NewEvaluator() Evaluator
type RequestSource ¶
type RequestSource struct {
PathParams map[string]string
QueryParams map[string][]string
Headers map[string][]string
Body any
Cookies map[string]string
}
RequestSource provides access to request data.
type StateSource ¶
StateSource provides access to server state.
Click to show internal directories.
Click to hide internal directories.