10 lines
270 B
Go
10 lines
270 B
Go
package consulcatalog
|
|
|
|
import "github.com/containous/traefik/types"
|
|
|
|
func (p *Provider) buildConfiguration(catalog []catalogUpdate) *types.Configuration {
|
|
if p.TemplateVersion == 1 {
|
|
return p.buildConfigurationV1(catalog)
|
|
}
|
|
return p.buildConfigurationV2(catalog)
|
|
}
|