security

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: LGPL-3.0 Imports: 6 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) *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