Documentation ¶
Index ¶
- Constants
- Variables
- type Index
- type Node
- func (node *Node) Fit(prior *Node, next *Node) *Node
- func (node *Node) Init(name []byte) *Node
- func (node *Node) JSON() ([]byte, error)
- func (node *Node) Name() []byte
- func (node *Node) Next() *Node
- func (node *Node) Print() *Node
- func (node *Node) Prior() *Node
- func (node *Node) Ring() *Ring
- func (node *Node) Set(value interface{}) *Node
- func (node *Node) Value() interface{}
- type Ring
- func (ring *Ring) Array() []*Node
- func (ring *Ring) Find(finder func(*Node) bool) (Index, error)
- func (ring *Ring) Init(nodes [][]byte) *Ring
- func (ring *Ring) JSON() ([]byte, error)
- func (ring *Ring) Node() *Node
- func (ring *Ring) Pop() *Node
- func (ring *Ring) Push(nx *Node) *Ring
- func (ring *Ring) Seek(index Index) (*Node, error)
- func (ring *Ring) Skip(n Index) *Ring
Constants ¶
View Source
const ( // FORWARD seek FORWARD = iota // BACKWARD seek BACKWARD )
Variables ¶
View Source
var ( // STDOUT mapping of os lib STDOUT = os.Stdout )
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { NodeName []byte `json:"name"` NodeValue interface{} `json:"value"` // contains filtered or unexported fields }
Node in a ring
Click to show internal directories.
Click to hide internal directories.