ipnet

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2019 License: MIT Imports: 1 Imported by: 46

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

Documentation

Overview

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

Index

Constants

View Source
const EnvKey = core.EnvKey

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

Variables

View Source
var ErrNotInPrivateNetwork = core.ErrNotInPrivateNetwork

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

Functions

func IsPNetError deprecated

func IsPNetError(err error) bool

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

func NewError deprecated

func NewError(err string) error

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

Types

type PNetError deprecated

type PNetError = core.Error

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

type Protector deprecated

type Protector = core.Protector

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL