Source File
acl.go
Belonging Package
github.com/libp2p/go-libp2p/p2p/protocol/circuitv2/relay
package relayimport (ma)// ACLFilter is an Access Control mechanism for relayed connect.type ACLFilter interface {// AllowReserve returns true if a reservation from a peer with the given peer ID and multiaddr// is allowed.AllowReserve(p peer.ID, a ma.Multiaddr) bool// AllowConnect returns true if a source peer, with a given multiaddr is allowed to connect// to a destination peer.AllowConnect(src peer.ID, srcAddr ma.Multiaddr, dest peer.ID) bool}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |