Documentation
¶
Overview ¶
Package fixedtree provides tree structures.
Index ¶
- type BaseNode
- func (n BaseNode) Equal(b Node) bool
- func (n BaseNode) Hash() util.Hash
- func (n BaseNode) IsEmpty() bool
- func (n BaseNode) IsValid([]byte) error
- func (n BaseNode) JSONMarshaler() BaseNodeJSONMarshaler
- func (n BaseNode) Key() string
- func (n BaseNode) MarshalJSON() ([]byte, error)
- func (n BaseNode) SetHash(h util.Hash) Node
- func (n BaseNode) String() string
- func (n *BaseNode) UnmarshalJSON(b []byte) error
- type BaseNodeJSONMarshaler
- type Node
- type NodeWrite
- type Proof
- type Tree
- func (t Tree) IsValid(b []byte) error
- func (t Tree) Len() int
- func (t Tree) Node(index uint64) Node
- func (t Tree) Nodes() []Node
- func (t Tree) Proof(key string) (Proof, error)
- func (t Tree) Root() util.Hash
- func (t *Tree) Set(index uint64, n Node) error
- func (t Tree) Traverse(f func(index uint64, node Node) (bool, error)) error
- type Writer
- func (g *Writer) Add(index uint64, n Node) error
- func (g *Writer) Hint() hint.Hint
- func (g *Writer) Len() int
- func (g *Writer) Root() util.Hash
- func (g *Writer) Traverse(f func(index uint64, node Node) (bool, error)) error
- func (g *Writer) Tree() (Tree, error)
- func (g *Writer) Write(w NodeWrite) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseNode ¶
type BaseNode struct {
// contains filtered or unexported fields
}
func EmptyBaseNode ¶
func EmptyBaseNode() BaseNode
func NewBaseNode ¶
func ParseBaseNodeString ¶
func (BaseNode) JSONMarshaler ¶
func (n BaseNode) JSONMarshaler() BaseNodeJSONMarshaler
func (BaseNode) MarshalJSON ¶
func (*BaseNode) UnmarshalJSON ¶
type BaseNodeJSONMarshaler ¶
type Node ¶
type Proof ¶
type Proof struct {
// contains filtered or unexported fields
}
func (Proof) MarshalJSON ¶
func (*Proof) UnmarshalJSON ¶
type Tree ¶
type Tree struct { hint.BaseHinter // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.