Versions in this module Expand all Collapse all v0 v0.2.3 Jun 20, 2021 Changes in this version + type Option interface + func WithChunks(chs ...swarm.Chunk) Option + func WithCursors(c []uint64) Option + func WithCursorsErr(e error) Option + func WithEvilChunk(addr swarm.Address, ch swarm.Chunk) Option + func WithIntervalsResp(addrs []swarm.Address, top uint64, err error) Option + type PullStorage struct + func NewPullStorage(opts ...Option) *PullStorage + func (s *PullStorage) Cursors(ctx context.Context) (curs []uint64, err error) + func (s *PullStorage) Get(_ context.Context, _ storage.ModeGet, addrs ...swarm.Address) (chs []swarm.Chunk, err error) + func (s *PullStorage) Has(_ context.Context, addr swarm.Address) (bool, error) + func (s *PullStorage) IntervalChunks(_ context.Context, bin uint8, from, to uint64, limit int) (chunks []swarm.Address, topmost uint64, err error) + func (s *PullStorage) Put(_ context.Context, _ storage.ModePut, chs ...swarm.Chunk) error + func (s *PullStorage) PutCalls() int + func (s *PullStorage) Set(ctx context.Context, mode storage.ModeSet, addrs ...swarm.Address) error + func (s *PullStorage) SetCalls() int