fixed kv errors

This commit is contained in:
ston1th 2021-03-07 14:04:06 +01:00
commit ab12dd67d4
4 changed files with 16 additions and 15 deletions

View file

@ -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