cleanup, ensure haproxy is running and disallow writes to followers

This commit is contained in:
ston1th 2021-10-09 19:03:08 +02:00
commit fef86deac8
9 changed files with 49 additions and 183 deletions

View file

@ -134,6 +134,10 @@ func (ha *HAProxyManager) Start(ctx context.Context) error {
return err
}
func (ha *HAProxyManager) IsRunning(ctx context.Context) error {
return ha.svc.Status(ctx)
}
func (ha *HAProxyManager) Stop(ctx context.Context) error {
return ha.svc.Stop(ctx)
}