services

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2025 License: MIT Imports: 14 Imported by: 0

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

func (*ConfigGenerator) Stop

func (cg *ConfigGenerator) Stop()

Stop stops the config generator

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

func (*ResourceWatcher) Stop

func (rw *ResourceWatcher) Stop()

Stop stops the resource watcher

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL