Documentation
¶
Index ¶
- func Node(d []byte) *mdag.ProtoNode
- type AccDag
- func (ad *AccDag) Append(ctx context.Context, n *ProtoNode) (depth uint64, ok bool)
- func (ad *AccDag) GetDepth() uint64
- func (ad *AccDag) GetEpoch() uint64
- func (ad *AccDag) SetEpoch(e uint64)
- func (ad *AccDag) Store(ctx context.Context, node *ProtoNode) error
- func (ad *AccDag) Traverse(n *ProtoNode, traverseFunc traverse.Func) error
- func (ad *AccDag) TruncateRoot(ctx context.Context) (n *ProtoNode, ok bool)
- type DagService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccDag ¶
type AccDag struct { *DagService sync.Mutex Accumulator []*ProtoNode Size int Depth uint64 Epoch uint64 }
type DagService ¶
type DagService struct { Blocks bserv.BlockService Srv dagService }
func New ¶
func New(bs bserv.BlockService) *DagService
Click to show internal directories.
Click to hide internal directories.