Documentation
¶
Index ¶
- func Dump(file string)
- func GetConfigFilePath(endpointID string) string
- func GetPidFilePath(endpointID string) string
- func GetStatsSocketPath(endpointID string) string
- func TryRemoveFile(file string)
- type FakeHaproxy
- type HAProxy
- type HAProxyController
- func (h *HAProxyController) AddInstance(si *models.ServiceInjection) error
- func (h *HAProxyController) CollectStats()
- func (h *HAProxyController) IsRunning(endpointID string) bool
- func (h *HAProxyController) RemoveInstance(endpointID string) error
- func (h *HAProxyController) Run(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigFilePath ¶
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(endpointID string) bool
func (*FakeHaproxy) RemoveInstance ¶
func (h *FakeHaproxy) RemoveInstance(endpointID 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(endpointID string) bool
func (*HAProxyController) RemoveInstance ¶
func (h *HAProxyController) RemoveInstance(endpointID string) error
func (*HAProxyController) Run ¶
func (h *HAProxyController) Run(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.