go-libp2p-core/routing/options.go

21 lines
800 B
Go
Raw Normal View History

package routing
2022-08-18 23:54:48 +08:00
import "github.com/libp2p/go-libp2p/core/routing"
// 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
// 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
// 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
// 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