Refactor globalConfiguration / WebProvider
This commit is contained in:
parent
92fb86b66f
commit
e0af17a17a
8 changed files with 430 additions and 398 deletions
|
@ -156,6 +156,9 @@ func NewLoadBalancerMethod(loadBalancer *LoadBalancer) (LoadBalancerMethod, erro
|
|||
return Wrr, fmt.Errorf("invalid load-balancing method '%s'", method)
|
||||
}
|
||||
|
||||
// Configurations is for currentConfigurations Map
|
||||
type Configurations map[string]*Configuration
|
||||
|
||||
// Configuration of a provider.
|
||||
type Configuration struct {
|
||||
Backends map[string]*Backend `json:"backends,omitempty"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue