Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULT_SIZE = 2 << 24
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { *BloomFilter // contains filtered or unexported fields }
func NewBackend ¶
type BloomFilter ¶
type BloomFilter struct { Set *bitset.BitSet Funcs [6]SimpleHash }
func NewBloomFilter ¶
func NewBloomFilter() *BloomFilter
func (BloomFilter) Add ¶
func (bf BloomFilter) Add(value string)
func (BloomFilter) Contains ¶
func (bf BloomFilter) Contains(value string) bool
type MemPool ¶
type MemPool struct {
*Backend
}
func NewMemPool ¶
func NewMemPool() *MemPool
NewTransactions creates a new memory pool for transactions.
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
func NewProducer ¶
func NewProducer() *Producer
func (*Producer) AddTxn ¶
func (pd *Producer) AddTxn(txn *message.Transaction)
func (*Producer) CollectTxn ¶
func (pd *Producer) CollectTxn(txn *message.Transaction)
func (*Producer) GeneratePayload ¶
func (pd *Producer) GeneratePayload() []*message.Transaction
func (*Producer) TotalReceivedTxNo ¶
type SimpleHash ¶
Click to show internal directories.
Click to hide internal directories.