add header checker
Some checks failed
build container / build-container (push) Successful in 33m30s
run go test / test (push) Failing after 3s

This commit is contained in:
2025-04-01 14:09:43 +08:00
parent 85968bb5cf
commit 835045346d
3 changed files with 60 additions and 9 deletions

View File

@ -15,9 +15,20 @@ type PathTransformation struct {
Replace string `yaml:"replace"`
}
type HeaderChecker struct {
Name string `yaml:"name"`
Match *string `yaml:"match"`
}
type Checker struct {
StatusCodes []int `yaml:"status-codes"`
Headers []HeaderChecker `yaml:"headers"`
}
type Upstream struct {
Server string `yaml:"server"`
Path PathTransformation `yaml:"path"`
Checkers []Checker `yaml:"checkers"`
AllowedRedirect *string `yaml:"allowed-redirect"`
PriorityGroups []UpstreamPriorityGroup `yaml:"priority-groups"`
}