Documentation ¶
Index ¶
- type Option
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithCursors ¶
func WithReplies ¶
func WithSyncError ¶
type PullSyncMock ¶
type PullSyncMock struct {
// contains filtered or unexported fields
}
func NewPullSync ¶
func NewPullSync(opts ...Option) *PullSyncMock
func (*PullSyncMock) CursorsCalls ¶
func (p *PullSyncMock) CursorsCalls(peer swarm.Address) bool
func (*PullSyncMock) GetCursors ¶
func (*PullSyncMock) ResetCalls ¶
func (p *PullSyncMock) ResetCalls(peer swarm.Address)
func (*PullSyncMock) SetEpoch ¶
func (p *PullSyncMock) SetEpoch(epoch uint64)
Click to show internal directories.
Click to hide internal directories.