Documentation ¶
Overview ¶
Package bapl implements rudimentary implementation of BatchPool
Index ¶
- Variables
- type Batch
- type BatchPool
- type BatchVerifier
- type FetchIncludersFn
- type MemPool
- func (p *MemPool) Close()
- func (p *MemPool) Delete(_ context.Context, hash []byte) error
- func (p *MemPool) ListBySigner(_ context.Context, key []byte) ([]*Batch, error)
- func (p *MemPool) Pull(ctx context.Context, hash []byte) (*Batch, error)
- func (p *MemPool) Push(_ context.Context, batch *Batch) error
- func (p *MemPool) Size(context.Context) (int, error)
- type MulticastPool
- func (p *MulticastPool) Delete(ctx context.Context, hash []byte) error
- func (p *MulticastPool) ListBySigner(ctx context.Context, bytes []byte) ([]*Batch, error)
- func (p *MulticastPool) Pull(ctx context.Context, hash []byte) (*Batch, error)
- func (p *MulticastPool) Push(ctx context.Context, batch *Batch) error
- func (p *MulticastPool) Size(ctx context.Context) (int, error)
- func (p *MulticastPool) Start()
- func (p *MulticastPool) Stop()
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBatchDeleted = errors.New("batch deleted")
Functions ¶
This section is empty.
Types ¶
type FetchIncludersFn ¶
type MemPool ¶
type MemPool struct {
// contains filtered or unexported fields
}
func NewMemPool ¶
func NewMemPool() *MemPool
func (*MemPool) ListBySigner ¶
type MulticastPool ¶
type MulticastPool struct {
// contains filtered or unexported fields
}
func NewMulticastPool ¶
func NewMulticastPool( pool BatchPool, host host.Host, includers FetchIncludersFn, signer crypto.Signer, verifier BatchVerifier, ) *MulticastPool
func (*MulticastPool) Delete ¶
func (p *MulticastPool) Delete(ctx context.Context, hash []byte) error
func (*MulticastPool) ListBySigner ¶
func (*MulticastPool) Start ¶
func (p *MulticastPool) Start()
func (*MulticastPool) Stop ¶
func (p *MulticastPool) Stop()
Click to show internal directories.
Click to hide internal directories.