security

package
v0.1.34 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(maxConnPerIP int, maxPeers int64) *Manager

func (*Manager) OnConnectCheck

func (m *Manager) OnConnectCheck(net libp2p_network.Network, conn libp2p_network.Conn) error

func (*Manager) OnDisconnectCheck

func (m *Manager) OnDisconnectCheck(conn libp2p_network.Conn) error

type Security

type Security interface {
	OnConnectCheck(net libp2p_network.Network, conn libp2p_network.Conn) error
	OnDisconnectCheck(conn libp2p_network.Conn) error
}

Jump to

Keyboard shortcuts

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