Discover Packages
github.com/infininet/gossamer
internal
trie
record
package
Version:
v0.0.0-...-c69f244
Opens a new window with list of versions in this module.
Published: Jul 16, 2022
License: LGPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Node struct {
RawData []byte
Hash []byte
}
Node represents a record of a visited node
Recorder records the list of nodes found by Lookup.Find
NewRecorder creates a new recorder.
GetNodes returns all the nodes recorded.
Note it does not copy its slice of nodes.
It's fine to not copy them since the recorder
is not used again after a call to GetNodes()
Record appends a node to the list of visited nodes.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.