Documentation ¶
Index ¶
Constants ¶
View Source
const ( MAX_VALUE = int64(0xFFFFFFFF) CRUSH_HASH_SEED = int64(1315423911) )
Variables ¶
This section is empty.
Functions ¶
func TestCompare ¶
Types ¶
type Comparitor ¶
type CrushNode ¶
type CrushNode struct {
Selector Selector
}
func (CrushNode) GetSelector ¶
func (CrushNode) SetSelector ¶
type HashingSelector ¶
type HashingSelector struct {
// contains filtered or unexported fields
}
func NewHashingSelector ¶
func NewHashingSelector(n Node) *HashingSelector
type Node ¶
type StrawSelector ¶
func NewStrawSelector ¶
func NewStrawSelector(n Node) *StrawSelector
type TestingNode ¶
type TestingNode struct { Children []Node CrushNode Weight int64 Parent Node Failed bool Id string Type int }
func (TestingNode) GetChildren ¶
func (n TestingNode) GetChildren() []Node
func (TestingNode) GetId ¶
func (n TestingNode) GetId() string
func (TestingNode) GetParent ¶
func (n TestingNode) GetParent() Node
func (TestingNode) GetType ¶
func (n TestingNode) GetType() int
func (TestingNode) GetWeight ¶
func (n TestingNode) GetWeight() int64
func (TestingNode) IsFailed ¶
func (n TestingNode) IsFailed() bool
func (TestingNode) IsLeaf ¶
func (n TestingNode) IsLeaf() bool
type TreeSelector ¶
type TreeSelector struct { Node Node // contains filtered or unexported fields }
func NewTreeSelector ¶
func NewTreeSelector(n Node) *TreeSelector
type UniformSelector ¶
type UniformSelector struct { Node Node // contains filtered or unexported fields }
func NewUniformSelector ¶
func NewUniformSelector(n Node) *UniformSelector
type UnweightedHashSelector ¶
type UnweightedHashSelector struct {
// contains filtered or unexported fields
}
func NewUnweightedHashSelector ¶
func NewUnweightedHashSelector(n Node) *UnweightedHashSelector
Click to show internal directories.
Click to hide internal directories.