fixed kv errors
This commit is contained in:
parent
5bb67f7922
commit
ab12dd67d4
4 changed files with 16 additions and 15 deletions
|
|
@ -2,11 +2,18 @@ package cluster
|
|||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
|
||||
"git.giftfish.de/ston1th/haproxy-lb/pkg/config"
|
||||
"github.com/go-logr/logr"
|
||||
)
|
||||
|
||||
var (
|
||||
ErrNotLeader = errors.New("not leader")
|
||||
ErrKeyNotFound = errors.New("key not found")
|
||||
ErrPrefixNotFound = errors.New("prefix not found")
|
||||
)
|
||||
|
||||
type Cluster interface {
|
||||
Start(*config.Config) error
|
||||
SetCallbacks(Callbacks) error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue