Use upstream in host config

This commit is contained in:
Jamie Curnow
2023-01-06 11:42:02 +10:00
parent bc6825c148
commit 17a108f75f
6 changed files with 49 additions and 25 deletions

View File

@ -1,13 +1,6 @@
package host
type TemplateUpstream struct {
Hostname string
Port int
BalanceMethod string
MaxFails int
FailTimeout int
AdvancedConfig string
}
import "npm/internal/entity/upstream"
// Template is the model given to the template parser, converted from the Model
type Template struct {
@ -34,5 +27,5 @@ type Template struct {
AdvancedConfig string
Status string
ErrorMessage string
Upstreams []TemplateUpstream
Upstream upstream.Model
}