package control

import "github.com/libp2p/go-libp2p/core/control"

Index

Types

type DisconnectReason

type DisconnectReason int

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.

Source Files

disconnect.go

Version
v0.42.0 (latest)
Published
Jun 18, 2025
Platform
linux/amd64
Last checked
1 week ago

Tools for package owners.