Documentation ¶
Index ¶
Constants ¶
View Source
const ( PublicHttpPort = 80 PublicHttpsPort = 443 PrivateHttpPort = 81 PrivateTcpSslPort = 82 )
Variables ¶
This section is empty.
Functions ¶
func NewNameGenerator ¶
func NewNameGenerator(prefix string) *nameGenerator
Types ¶
type Service ¶
type Service struct { ServiceConfig ServiceDependencies // contains filtered or unexported fields }
func NewService ¶
func NewService(config ServiceConfig, deps ServiceDependencies) *Service
NewService creates a new service instance.
func (*Service) Run ¶
func (s *Service) Run()
Run starts the service and waits for OS signals to terminate it.
func (*Service) TriggerUpdate ¶
func (s *Service) TriggerUpdate()
TriggerUpdate notifies the service to update the haproxy configuration
type ServiceConfig ¶
type ServiceConfig struct { HaproxyConfPath string HaproxyPath string HaproxyPidPath string StatsPort int StatsUser string StatsPassword string StatsSslCert string PrivateStatsPort int SslCertsFolder string ForceSsl bool PrivateHost string PublicHost string PrivateTcpSslCert string // Name of SSL certificate used for private tcp connections ExcludePublic bool // If set, all public frontends are excluded ExcludePrivate bool // If set, all private frontends are excluded }
type ServiceDependencies ¶
type ServiceDependencies struct { Logger *logging.Logger Backend backend.Backend AcmeService acme.AcmeService }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.