Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrFindAllTailsFailed = errors.New("Unable to find all tails")
)
Functions ¶
func FindAllTails ¶
func TraverseApprovees ¶
func TraverseApprovees(startTxHash trinary.Hash, condition Predicate, consumer Consumer, onMissingApprovee OnMissingApprovee, forceRelease bool)
TraverseApprovees starts to traverse the approvees of the given start transaction until the traversal stops due to no more transactions passing the given condition.
Types ¶
type Consumer ¶
type Consumer func(cachedTx *tangle.CachedTransaction)
Consumer consumes the given transaction during traversal.
type OnMissingApprovee ¶
OnMissingApprovee gets called when during traversal an approvee is missing.
type Predicate ¶
type Predicate func(cachedTx *tangle.CachedTransaction) bool
Predicate defines whether a traversal should continue or not.
Click to show internal directories.
Click to hide internal directories.