Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pooler ¶
type Pooler interface {
// Get a bmt Hasher instance.
// Instances are reset before being returned to the caller.
Get() *bmtlegacy.Hasher
// Put a bmt Hasher back into the pool
Put(*bmtlegacy.Hasher)
// Size of the pool.
Size() int
}
Pooler pools bmt Hashers. It provides the ability for the number of hashers to grow according to demand, but will shrink once the minimum defined hashers are put back into the pool.
Click to show internal directories.
Click to hide internal directories.