mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 20:52:33 +02:00
fix panic: Bad field name provided name
This commit is contained in:
parent
74828943a6
commit
642e6ebdc8
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ type (
|
||||||
one match means this line is matched.
|
one match means this line is matched.
|
||||||
*/
|
*/
|
||||||
Rule struct {
|
Rule struct {
|
||||||
Name string `json:"name" validate:"required,unique"`
|
Name string `json:"name" validate:"required"`
|
||||||
On RuleOn `json:"on"`
|
On RuleOn `json:"on"`
|
||||||
Do Command `json:"do"`
|
Do Command `json:"do"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ type (
|
||||||
Port string `json:"port,omitempty"`
|
Port string `json:"port,omitempty"`
|
||||||
NoTLSVerify bool `json:"no_tls_verify,omitempty"`
|
NoTLSVerify bool `json:"no_tls_verify,omitempty"`
|
||||||
PathPatterns []string `json:"path_patterns,omitempty"`
|
PathPatterns []string `json:"path_patterns,omitempty"`
|
||||||
Rules rules.Rules `json:"rules,omitempty"`
|
Rules rules.Rules `json:"rules,omitempty" validate:"omitempty,unique=Name"`
|
||||||
HealthCheck *health.HealthCheckConfig `json:"healthcheck,omitempty"`
|
HealthCheck *health.HealthCheckConfig `json:"healthcheck,omitempty"`
|
||||||
LoadBalance *loadbalance.Config `json:"load_balance,omitempty"`
|
LoadBalance *loadbalance.Config `json:"load_balance,omitempty"`
|
||||||
Middlewares map[string]docker.LabelMap `json:"middlewares,omitempty"`
|
Middlewares map[string]docker.LabelMap `json:"middlewares,omitempty"`
|
||||||
|
|
Loading…
Add table
Reference in a new issue