Documentation ¶
Index ¶
- Variables
- type Store
- func (s *Store) Add(p *types.Proposal) error
- func (s *Store) Get(layer types.LayerID, id types.ProposalID) *types.Proposal
- func (s *Store) GetBlob(id types.ProposalID) ([]byte, error)
- func (s *Store) GetForLayer(layer types.LayerID) []*types.Proposal
- func (s *Store) GetMany(layer types.LayerID, pids ...types.ProposalID) []*types.Proposal
- func (s *Store) Has(id types.ProposalID) bool
- func (s *Store) IsEvicted(layer types.LayerID) bool
- func (s *Store) OnLayer(layer types.LayerID)
- type StoreOption
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...StoreOption) *Store
type StoreOption ¶
type StoreOption func(*Store)
func WithCapacity ¶
func WithCapacity(capacity uint32) StoreOption
func WithEvictedLayer ¶
func WithEvictedLayer(layer types.LayerID) StoreOption
func WithLogger ¶
func WithLogger(logger *zap.Logger) StoreOption
Click to show internal directories.
Click to hide internal directories.