Versions in this module Expand all Collapse all v0 v0.29.0 Jul 29, 2023 Changes in this version + type BasicConnectionGater struct + func NewBasicConnectionGater(ds datastore.Datastore) (*BasicConnectionGater, error) + func (cg *BasicConnectionGater) BlockAddr(ip net.IP) error + func (cg *BasicConnectionGater) BlockPeer(p peer.ID) error + func (cg *BasicConnectionGater) BlockSubnet(ipnet *net.IPNet) error + func (cg *BasicConnectionGater) InterceptAccept(cma network.ConnMultiaddrs) (allow bool) + func (cg *BasicConnectionGater) InterceptAddrDial(p peer.ID, a ma.Multiaddr) (allow bool) + func (cg *BasicConnectionGater) InterceptPeerDial(p peer.ID) (allow bool) + func (cg *BasicConnectionGater) InterceptSecured(dir network.Direction, p peer.ID, cma network.ConnMultiaddrs) (allow bool) + func (cg *BasicConnectionGater) InterceptUpgraded(network.Conn) (allow bool, reason control.DisconnectReason) + func (cg *BasicConnectionGater) ListBlockedAddrs() []net.IP + func (cg *BasicConnectionGater) ListBlockedPeers() []peer.ID + func (cg *BasicConnectionGater) ListBlockedSubnets() []*net.IPNet + func (cg *BasicConnectionGater) UnblockAddr(ip net.IP) error + func (cg *BasicConnectionGater) UnblockPeer(p peer.ID) error + func (cg *BasicConnectionGater) UnblockSubnet(ipnet *net.IPNet) error