Versions in this module Expand all Collapse all v1 v1.7.2 Oct 14, 2017 v1.7.0 Sep 14, 2017 Changes in this version + const DefaultPoolSize + const DefaultSegmentCount + type BaseHasher func() hash.Hash + type EOC struct + Hash []byte + func NewEOC(hash []byte) *EOC + func (self *EOC) Error() string + type Hasher struct + func New(p *TreePool) *Hasher + func (self *Hasher) BlockSize() int + func (self *Hasher) Hash() []byte + func (self *Hasher) ReadFrom(r io.Reader) (m int64, err error) + func (self *Hasher) Reset() + func (self *Hasher) ResetWithLength(l []byte) + func (self *Hasher) Size() int + func (self *Hasher) Sum(b []byte) (r []byte) + func (self *Hasher) Write(b []byte) (int, error) + type Node struct + func NewNode(level, index int, parent *Node) *Node + type RefHasher struct + func NewRefHasher(hasher BaseHasher, count int) *RefHasher + func (rh *RefHasher) Hash(d []byte) []byte + type Tree struct + func NewTree(hasher BaseHasher, segmentSize, segmentCount int) *Tree + func (self *Tree) Draw(hash []byte, d int) string + type TreePool struct + Capacity int + SegmentCount int + SegmentSize int + func NewTreePool(hasher BaseHasher, segmentCount, capacity int) *TreePool + func (self *TreePool) Drain(n int) + func (self *TreePool) Release(t *Tree) + func (self *TreePool) Reserve() *Tree