mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-02-10 06:40:09 +08:00
14 lines
551 B
Go
14 lines
551 B
Go
// Deprecated: This package has moved into go-libp2p as a sub-package: github.com/libp2p/go-libp2p/core/control.
|
|
package control
|
|
|
|
import "github.com/libp2p/go-libp2p/core/control"
|
|
|
|
// 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.
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/control instead
|
|
type DisconnectReason = control.DisconnectReason
|