Versions in this module Expand all Collapse all v0 v0.0.3 Apr 21, 2025 v0.0.2 Apr 21, 2025 Changes in this version + type Option interface + func WithCursors(v []uint64, e uint64) Option + func WithReplies(replies ...SyncReply) Option + func WithSyncError(err error) Option + type PullSyncMock struct + func NewPullSync(opts ...Option) *PullSyncMock + func (p *PullSyncMock) CursorsCalls(peer swarm.Address) bool + func (p *PullSyncMock) GetCursors(_ context.Context, peer swarm.Address) ([]uint64, uint64, error) + func (p *PullSyncMock) ResetCalls(peer swarm.Address) + func (p *PullSyncMock) SetEpoch(epoch uint64) + func (p *PullSyncMock) Sync(ctx context.Context, peer swarm.Address, bin uint8, start uint64) (topmost uint64, count int, err error) + func (p *PullSyncMock) SyncCalls(peer swarm.Address) (res []SyncReply) + type SyncReply struct + Bin uint8 + Count int + Peer swarm.Address + Start uint64 + Topmost uint64