Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigGenerator ¶
type ConfigGenerator struct {
// contains filtered or unexported fields
}
ConfigGenerator generates Traefik configuration files
func NewConfigGenerator ¶
func NewConfigGenerator(db *database.DB, confDir string) *ConfigGenerator
NewConfigGenerator creates a new config generator
func (*ConfigGenerator) Start ¶
func (cg *ConfigGenerator) Start(interval time.Duration)
Start begins generating configuration files
type ResourceWatcher ¶
type ResourceWatcher struct {
// contains filtered or unexported fields
}
ResourceWatcher watches for resources in Pangolin
func NewResourceWatcher ¶
func NewResourceWatcher(db *database.DB, pangolinAPI string) *ResourceWatcher
NewResourceWatcher creates a new resource watcher
func (*ResourceWatcher) Start ¶
func (rw *ResourceWatcher) Start(interval time.Duration)
Start begins watching for resources
type TraefikConfig ¶
type TraefikConfig struct {
HTTP struct {
Middlewares map[string]interface{} `yaml:"middlewares,omitempty"`
Routers map[string]interface{} `yaml:"routers,omitempty"`
} `yaml:"http"`
}
TraefikConfig represents the structure of the Traefik configuration
Click to show internal directories.
Click to hide internal directories.