dhtopts

package
v0.7.11 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BucketSize deprecated added in v0.7.11

func BucketSize(bucketSize int) dht.Option

Deprecated: use dht.BucketSize

func Client

func Client(only bool) dht.Option

Client configures whether or not the DHT operates in client-only mode.

Defaults to false (which is ModeAuto). Deprecated: use dht.Mode(ModeClient)

func Datastore deprecated

func Datastore(ds ds.Batching) dht.Option

Deprecated: use dht.Datastore

func DisableAutoRefresh deprecated added in v0.7.11

func DisableAutoRefresh() dht.Option

Deprecated: use dht.DisableAutoRefresh

func DisableProviders deprecated added in v0.7.11

func DisableProviders() dht.Option

Deprecated: use dht.DisableProviders

func DisableValues deprecated added in v0.7.11

func DisableValues() dht.Option

Deprecated: use dht.DisableValues

func MaxRecordAge deprecated added in v0.7.11

func MaxRecordAge(maxAge time.Duration) dht.Option

Deprecated: use dht.MaxRecordAge

func Mode deprecated added in v0.7.11

func Mode(m dht.ModeOpt) dht.Option

Deprecated: use dht.Mode

func NamespacedValidator deprecated

func NamespacedValidator(ns string, v record.Validator) dht.Option

Deprecated: use dht.NamespacedValidator

func RoutingTableLatencyTolerance deprecated added in v0.7.11

func RoutingTableLatencyTolerance(latency time.Duration) dht.Option

Deprecated: use dht.RoutingTableLatencyTolerance

func RoutingTableRefreshPeriod deprecated added in v0.7.11

func RoutingTableRefreshPeriod(period time.Duration) dht.Option

Deprecated: use dht.RoutingTableRefreshPeriod

func RoutingTableRefreshQueryTimeout deprecated added in v0.7.11

func RoutingTableRefreshQueryTimeout(timeout time.Duration) dht.Option

Deprecated: use dht.RoutingTableRefreshQueryTimeout

func Validator deprecated

func Validator(v record.Validator) dht.Option

Deprecated: use dht.Validator

Types

type Option

type Option = dht.Option

Jump to

Keyboard shortcuts

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