Versions in this module Expand all Collapse all v1 v1.0.3 Dec 21, 2023 v1.0.0 Dec 21, 2023 Changes in this version + var ErrCannotBanPermanent = errors.New("ErrCannotBanPermanent") + type ConnectionManager struct + func New(cfg *infraconfig.Config, netAdapter *netadapter.NetAdapter, ...) (*ConnectionManager, error) + func (c *ConnectionManager) AddConnectionRequest(address string, isPermanent bool) + func (c *ConnectionManager) Ban(netConnection *netadapter.NetConnection) error + func (c *ConnectionManager) BanByIP(ip net.IP) error + func (c *ConnectionManager) ConnectionCount() int + func (c *ConnectionManager) IsBanned(netConnection *netadapter.NetConnection) (bool, error) + func (c *ConnectionManager) RemoveConnection(address string) + func (c *ConnectionManager) Start() + func (c *ConnectionManager) Stop()