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