dhtopts

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 4 Imported by: 95

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BucketSize deprecated added in v0.2.2

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.3.0

func DisableAutoRefresh() dht.Option

Deprecated: use dht.DisableAutoRefresh

func DisableProviders deprecated added in v0.4.1

func DisableProviders() dht.Option

Deprecated: use dht.DisableProviders

func DisableValues deprecated added in v0.4.1

func DisableValues() dht.Option

Deprecated: use dht.DisableValues

func MaxRecordAge deprecated added in v0.3.1

func MaxRecordAge(maxAge time.Duration) dht.Option

Deprecated: use dht.MaxRecordAge

func Mode deprecated added in v0.6.0

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.5.1

func RoutingTableLatencyTolerance(latency time.Duration) dht.Option

Deprecated: use dht.RoutingTableLatencyTolerance

func RoutingTableRefreshPeriod deprecated added in v0.3.0

func RoutingTableRefreshPeriod(period time.Duration) dht.Option

Deprecated: use dht.RoutingTableRefreshPeriod

func RoutingTableRefreshQueryTimeout deprecated added in v0.3.0

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