dhtopts

package
Version: v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BucketSize deprecated

This function has been deprecated.
func BucketSize(bucketSize int) dht.Option

Deprecated: use dht.BucketSize

func Client deprecated

This function has been deprecated.
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

This function has been deprecated.
func Datastore(ds ds.Batching) dht.Option

Deprecated: use dht.Datastore

func DisableAutoRefresh deprecated

This function has been deprecated.
func DisableAutoRefresh() dht.Option

Deprecated: use dht.DisableAutoRefresh

func DisableProviders deprecated

This function has been deprecated.
func DisableProviders() dht.Option

Deprecated: use dht.DisableProviders

func DisableValues deprecated

This function has been deprecated.
func DisableValues() dht.Option

Deprecated: use dht.DisableValues

func MaxRecordAge deprecated

This function has been deprecated.
func MaxRecordAge(maxAge time.Duration) dht.Option

Deprecated: use dht.MaxRecordAge

func Mode deprecated

This function has been deprecated.
func Mode(m dht.ModeOpt) dht.Option

Deprecated: use dht.Mode

func NamespacedValidator deprecated

This function has been deprecated.
func NamespacedValidator(ns string, v record.Validator) dht.Option

Deprecated: use dht.NamespacedValidator

func RoutingTableLatencyTolerance deprecated

This function has been deprecated.
func RoutingTableLatencyTolerance(latency time.Duration) dht.Option

Deprecated: use dht.RoutingTableLatencyTolerance

func RoutingTableRefreshPeriod deprecated

This function has been deprecated.
func RoutingTableRefreshPeriod(period time.Duration) dht.Option

Deprecated: use dht.RoutingTableRefreshPeriod

func RoutingTableRefreshQueryTimeout deprecated

This function has been deprecated.
func RoutingTableRefreshQueryTimeout(timeout time.Duration) dht.Option

Deprecated: use dht.RoutingTableRefreshQueryTimeout

func Validator deprecated

This function has been deprecated.
func Validator(v record.Validator) dht.Option

Deprecated: use dht.Validator

Types

type Option

type Option = dht.Option

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL