mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-03-13 11:00:10 +08:00
non alloc version
This commit is contained in:
parent
43dfa5faf4
commit
98b95a4877
@ -238,7 +238,7 @@ type ProtoBook interface {
|
||||
// If the returned error is not nil, the result is indeterminate.
|
||||
SupportsProtocols(peer.ID, ...string) ([]string, error)
|
||||
|
||||
// IsProtocolSupported returns true if the peer supports the given protocol and false otherwise.
|
||||
// SupportsAnyProtocol returns true if the peer supports ATLEAST ONE of the given protocols and false otherwise.
|
||||
// If the returned error is not nil, the result is indeterminate.
|
||||
IsProtocolSupported(peer.ID, string) (bool, error)
|
||||
SupportsAnyProtocol(peer.ID, ...string) (bool, error)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user