Documentation ¶
Index ¶
- func NewTopologyDriver(opts ...Option) *mock
- type Option
- func WithAddPeersErr(err error) Option
- func WithClosestPeer(addr swarm.Address) Option
- func WithClosestPeerErr(err error) Option
- func WithIsWithinFunc(f func(swarm.Address) bool) Option
- func WithMarshalJSONFunc(f func() ([]byte, error)) Option
- func WithNeighborhoodDepth(dd uint8) Option
- func WithPeers(peers ...swarm.Address) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTopologyDriver ¶
func NewTopologyDriver(opts ...Option) *mock
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithAddPeersErr ¶ added in v0.2.0
func WithClosestPeer ¶
func WithClosestPeerErr ¶
func WithMarshalJSONFunc ¶
func WithNeighborhoodDepth ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.