mock

package
v1.17.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2023 License: BSD-3-Clause Imports: 7 Imported by: 1

Documentation

Index

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 WithAddPeersErr(err error) Option

func WithClosestPeer

func WithClosestPeer(addr swarm.Address) Option

func WithClosestPeerErr

func WithClosestPeerErr(err error) Option

func WithIsWithinFunc added in v0.6.0

func WithIsWithinFunc(f func(swarm.Address) bool) Option

func WithMarshalJSONFunc

func WithMarshalJSONFunc(f func() ([]byte, error)) Option

func WithNeighborhoodDepth added in v1.0.0

func WithNeighborhoodDepth(dd uint8) Option

func WithPeers added in v0.4.0

func WithPeers(peers ...swarm.Address) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL