2019-05-23 01:31:11 +08:00
|
|
|
package routing
|
|
|
|
|
2022-08-18 23:54:48 +08:00
|
|
|
import "github.com/libp2p/go-libp2p/core/routing"
|
|
|
|
|
2019-05-23 01:31:11 +08:00
|
|
|
// Option is a single routing option.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/routing.Option instead
|
|
|
|
type Option = routing.Option
|
2019-05-23 01:31:11 +08:00
|
|
|
|
|
|
|
// Options is a set of routing options
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/routing.Options instead
|
|
|
|
type Options = routing.Options
|
2019-05-23 01:31:11 +08:00
|
|
|
|
|
|
|
// Expired is an option that tells the routing system to return expired records
|
|
|
|
// when no newer records are known.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/routing.Expired instead
|
|
|
|
var Expired = routing.Expired
|
2019-05-23 01:31:11 +08:00
|
|
|
|
|
|
|
// Offline is an option that tells the routing system to operate offline (i.e., rely on cached/local data only).
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/routing.Offline instead
|
|
|
|
var Offline = routing.Offline
|