traefik/provider/provider.go

15 lines
378 B
Go
Raw Normal View History

package provider
import (
2018-11-14 09:18:03 +00:00
"github.com/containous/traefik/config"
"github.com/containous/traefik/safe"
)
// Provider defines methods of a provider.
type Provider interface {
// Provide allows the provider to provide configurations to traefik
// using the given configuration channel.
2018-11-14 09:18:03 +00:00
Provide(configurationChan chan<- config.Message, pool *safe.Pool) error
Init() error
}