Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigFilePath ¶
func GetLogFilePath ¶
func GetPidFilePath ¶
func GetStatsSocketPath ¶
func TryRemoveFile ¶
func TryRemoveFile(file string)
Types ¶
type FakeHaproxy ¶
func NewFakeHaproxy ¶
func NewFakeHaproxy() *FakeHaproxy
func (*FakeHaproxy) AddInstance ¶
func (h *FakeHaproxy) AddInstance(injection *models.ServiceInjection) error
func (*FakeHaproxy) CollectStats ¶
func (h *FakeHaproxy) CollectStats()
func (*FakeHaproxy) IsRunning ¶
func (h *FakeHaproxy) IsRunning(network string) bool
func (*FakeHaproxy) RemoveInstance ¶
func (h *FakeHaproxy) RemoveInstance(networkID string) error
func (*FakeHaproxy) Run ¶
func (h *FakeHaproxy) Run(ctx context.Context)
type HAProxyController ¶
type HAProxyController struct {
// contains filtered or unexported fields
}
func NewHAProxyController ¶
func NewHAProxyController() *HAProxyController
func (*HAProxyController) AddInstance ¶
func (h *HAProxyController) AddInstance(si *models.ServiceInjection) error
func (*HAProxyController) CollectStats ¶
func (h *HAProxyController) CollectStats()
func (*HAProxyController) IsRunning ¶
func (h *HAProxyController) IsRunning(networkID string) bool
func (*HAProxyController) RemoveInstance ¶
func (h *HAProxyController) RemoveInstance(networkID string) error
func (*HAProxyController) Run ¶
func (h *HAProxyController) Run(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.