2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: This package has moved into go-libp2p as a sub-package: github.com/libp2p/go-libp2p/core/control.
|
2020-05-13 20:15:38 +08:00
|
|
|
package control
|
|
|
|
|
2022-08-18 23:54:48 +08:00
|
|
|
import "github.com/libp2p/go-libp2p/core/control"
|
|
|
|
|
2020-05-13 20:15:38 +08:00
|
|
|
// DisconnectReason communicates the reason why a connection is being closed.
|
|
|
|
//
|
|
|
|
// A zero value stands for "no reason" / NA.
|
|
|
|
//
|
|
|
|
// This is an EXPERIMENTAL type. It will change in the future. Refer to the
|
|
|
|
// connmgr.ConnectionGater godoc for more info.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/control instead
|
|
|
|
type DisconnectReason = control.DisconnectReason
|