2018-08-29 22:12:41 +08:00
|
|
|
package peerstore
|
|
|
|
|
2019-05-24 01:11:06 +08:00
|
|
|
import core "github.com/libp2p/go-libp2p-core/peerstore"
|
2018-08-29 22:12:41 +08:00
|
|
|
|
2019-05-24 01:11:06 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p-core/peerstore.ErrNotFound instead.
|
|
|
|
var ErrNotFound = core.ErrNotFound
|
2018-08-29 22:12:41 +08:00
|
|
|
|
2018-08-30 21:13:27 +08:00
|
|
|
var (
|
2019-05-24 01:11:06 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p-core/peerstore.AddressTTL instead.
|
|
|
|
AddressTTL = core.AddressTTL
|
2018-08-30 21:13:27 +08:00
|
|
|
|
2019-05-24 01:11:06 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p-core/peerstore.TempAddrTTL instead.
|
|
|
|
TempAddrTTL = core.TempAddrTTL
|
2018-08-30 21:13:27 +08:00
|
|
|
|
2019-05-24 01:11:06 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p-core/peerstore.ProviderAddrTTL instead.
|
|
|
|
ProviderAddrTTL = core.ProviderAddrTTL
|
2018-08-30 21:13:27 +08:00
|
|
|
|
2019-05-24 01:11:06 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p-core/peerstore.RecentlyConnectedAddrTTL instead.
|
|
|
|
RecentlyConnectedAddrTTL = core.RecentlyConnectedAddrTTL
|
2018-08-30 21:13:27 +08:00
|
|
|
|
2019-05-24 01:11:06 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p-core/peerstore.OwnObservedAddrTTL instead.
|
|
|
|
OwnObservedAddrTTL = core.OwnObservedAddrTTL
|
2018-08-30 21:13:27 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2019-05-24 01:11:06 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p-core/peerstore.PermanentAddrTTL instead.
|
|
|
|
PermanentAddrTTL = core.PermanentAddrTTL
|
2018-08-30 21:13:27 +08:00
|
|
|
|
2019-05-24 01:11:06 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p-core/peerstore.ConnectedAddrTTL instead.
|
|
|
|
ConnectedAddrTTL = core.ConnectedAddrTTL
|
2018-08-30 21:13:27 +08:00
|
|
|
)
|
|
|
|
|
2019-05-24 01:11:06 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p-core/peerstore.Peerstore instead.
|
|
|
|
type Peerstore = core.Peerstore
|
2018-08-29 22:12:41 +08:00
|
|
|
|
2019-05-24 01:11:06 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p-core/peerstore.PeerMetadata instead.
|
|
|
|
type PeerMetadata = core.PeerMetadata
|
2018-08-30 23:43:40 +08:00
|
|
|
|
2019-05-24 01:11:06 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p-core/peerstore.AddrBook instead.
|
|
|
|
type AddrBook = core.AddrBook
|
2018-08-30 23:43:40 +08:00
|
|
|
|
2019-05-24 01:11:06 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p-core/peerstore.KeyBook instead.
|
|
|
|
type KeyBook = core.KeyBook
|
2019-05-17 17:33:33 +08:00
|
|
|
|
2019-05-24 01:11:06 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p-core/peerstore.ProtoBook instead.
|
|
|
|
type ProtoBook = core.ProtoBook
|