Categorygithub.com/libp2p/go-libp2p-interface-pnet
modulepackage
0.1.0
Repository: https://github.com/libp2p/go-libp2p-interface-pnet.git
Documentation: pkg.go.dev

# README

go-libp2p-interface-pnet

Discourse posts

An interface providing abstraction of swarm protection for libp2p.

Table of Contents

Usage

Core of this interface in Protector that is used to protect the swarm. It makes decisions about which streams are allowed to pass.

This interface is accepted in multiple places in libp2p but most importantly in go-libp2p-swarm NewSwarmWithProtector and NewNetworkWithProtector.

Implementations:

Contribute

PRs are welcome!

Small note: If editing the Readme, please conform to the standard-readme specification.

License

MIT © Jeromy Johnson


The last gx published version of this module was: 3.0.0: QmW7Ump7YyBMr712Ta3iEVh3ZYcfVvJaPryfbCnyE826b4

# Functions

Deprecated: use github.com/libp2p/go-libp2p-core/pnet.IsPNetError instead.
Deprecated: use github.com/libp2p/go-libp2p-core/pnet.NewError instead.

# Constants

Deprecated: use github.com/libp2p/go-libp2p-core/pnet.EnvKey instead.

# Variables

Deprecated: use github.com/libp2p/go-libp2p-core/pnet.ErrNotInPrivateNetwork instead.

# Type aliases

Deprecated: use github.com/libp2p/go-libp2p-core/pnet.Error instead.
Deprecated: use github.com/libp2p/go-libp2p-core/pnet.Protector instead.