more work done
This commit is contained in:
parent
09fe1cd163
commit
6fda229a8e
23 changed files with 384 additions and 177 deletions
|
|
@ -8,10 +8,10 @@ import (
|
|||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"git.giftfish.de/ston1th/haproxy-lb/pkg/config"
|
||||
"git.giftfish.de/ston1th/haproxy-lb/pkg/raft/tls"
|
||||
"git.giftfish.de/ston1th/haproxy-lb/pkg/util"
|
||||
"git.giftfish.de/ston1th/raftbbolt"
|
||||
"git.giftfish.de/ston1th/vipman/pkg/config"
|
||||
"git.giftfish.de/ston1th/vipman/pkg/raft/tls"
|
||||
"git.giftfish.de/ston1th/vipman/pkg/util"
|
||||
hclog "github.com/hashicorp/go-hclog"
|
||||
"github.com/hashicorp/raft"
|
||||
)
|
||||
|
|
@ -187,6 +187,11 @@ func (c *Cluster) Stepdown() {
|
|||
}
|
||||
}
|
||||
|
||||
func (c *Cluster) Fatal(err error, msg string) {
|
||||
c.Error(err, "a fatal error occurred", "message", msg)
|
||||
c.Stop()
|
||||
}
|
||||
|
||||
func (c *Cluster) Stop() {
|
||||
close(c.stop)
|
||||
<-c.done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue