Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PathsContainPrefix ¶
PathsContainPrefix is used for loop detection (these are DAGs after all). If any element of haystack has needle as a prefix, or if any haystack item is a prefix of needle, then this returns true, otherwise false.
Types ¶
type GraftableDag ¶
type GraftedDag ¶
type GraftedDag struct {
// contains filtered or unexported fields
}
func (*GraftedDag) DagGetter ¶
func (gd *GraftedDag) DagGetter() DagGetter
func (*GraftedDag) GlobalResolve ¶
func (gd *GraftedDag) GlobalResolve(ctx context.Context, path chaintree.Path) (value interface{}, remaining chaintree.Path, err error)
GlobalResolve works like dag.Resolve but will resolve across multiple chaintrees when it encounters string values that start with `did:tupelo:` (i.e. chaintree DIDs).
func (*GraftedDag) OriginDag ¶
func (gd *GraftedDag) OriginDag() *dag.Dag
Click to show internal directories.
Click to hide internal directories.