Dynamic configuration expression support
Offen
- Vorherrschende Sprache
- Go
- Sterne
- 6.1k
- Forks
- 327
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
1. Define evaluation context that is passed across the codebase via context.Context.
2. Replace some (most?) configuration values with generic dynamic like:
```go
type DynamicString struct {
...
}
func (ds DynamicString) Evaluate(ctx context.Context) (string, error)
```
3. Add support for single-quote escaping in maddy configuration syntax.
```
modify {
replace_rcpt expr 'address_username(key)'
}
```
4. Define configuration syntax (like above) for dynamic expressions.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.