func (c *Consistent) eltKey(elt string, idx int) string {
	return elt + "|" + strconv.Itoa(idx)
}
eltKey generates a string key for an element with an index.
package orm
import (
	"errors"
	"hash/crc32"
	"sort"
	"strconv"
	"sync"
)
type uints []uint32
func (x uints) Len() int { return len(x) }
func (x uints) Less(i, j int) bool { return x[i] < x[j] }
func (x uints) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
var ErrEmptyCircle = errors.New("empty circle")
type Consistent struct {
	circle           map[uint32]string
	members          map[string]bool
	sortedHashes     uints
	NumberOfReplicas int
	count            int64
	scratch          [64]byte
	sync.RWMutex
}
func NewConsistent() *Consistent {
	c := new(Consistent)
	c.NumberOfReplicas = 20
	c.circle = make(map[uint32]string)
	c.members = make(map[string]bool)
	return c
}
func (c Consistent) GetCircle() map[uint32]string {
	return c.circle
}