Documentation ¶
Index ¶
- type Option
- type PullSyncMock
- func (p *PullSyncMock) CursorsCalls(peer swarm.Address) bool
- func (p *PullSyncMock) GetCursors(_ context.Context, peer swarm.Address) ([]uint64, error)
- func (p *PullSyncMock) ResetCalls(peer swarm.Address)
- 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 ¶ added in v1.17.0
func WithSyncError ¶ added in v1.10.0
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 ¶ added in v1.17.0
func (p *PullSyncMock) ResetCalls(peer swarm.Address)
Click to show internal directories.
Click to hide internal directories.