service

package
v0.0.0-...-93d971c Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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