Documentation ¶
Index ¶
- type Discovery
- type Opt
- func DisableDHT() Opt
- func Private() Opt
- func Server() Opt
- func WithBackup(backup []peer.AddrInfo) Opt
- func WithBootnodes(bootnodes []peer.AddrInfo) Opt
- func WithBootstrapDuration(bootstrapDuration time.Duration) Opt
- func WithDir(path string) Opt
- func WithDirect(direct []peer.AddrInfo) Opt
- func WithHighPeers(peers int) Opt
- func WithLogger(logger *zap.Logger) Opt
- func WithMinPeers(minPeers int) Opt
- func WithPeriod(period time.Duration) Opt
- func WithTimeout(timeout time.Duration) Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opt ¶
type Opt func(*Discovery)
func DisableDHT ¶ added in v1.0.9
func DisableDHT() Opt
func WithBackup ¶
func WithBootnodes ¶
func WithBootstrapDuration ¶
func WithDirect ¶ added in v1.0.9
func WithHighPeers ¶ added in v1.0.8
func WithLogger ¶
func WithMinPeers ¶
func WithPeriod ¶
func WithTimeout ¶
Click to show internal directories.
Click to hide internal directories.