mock

package
v0.0.0-...-fa704fd Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTopologyDriver

func NewTopologyDriver(opts ...Option) topology.Driver

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithAddPeersErr

func WithAddPeersErr(err error) Option

func WithClosestPeer

func WithClosestPeer(addr penguin.Address) Option

func WithClosestPeerErr

func WithClosestPeerErr(err error) Option

func WithIsWithinFunc

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

func WithMarshalJSONFunc

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

func WithPeers

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

Jump to

Keyboard shortcuts

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