type github.com/libp2p/go-libp2p/core/protocol.Router (interface)
Method Implmentations
AddHandler(protocol ID, handler HandlerFunc)
Switch.AddHandler
*github.com/multiformats/go-multistream.MultistreamMuxer[ID].AddHandler
AddHandlerWithFunc(protocol ID, match func(ID) bool, handler HandlerFunc)
Switch.AddHandlerWithFunc
*github.com/multiformats/go-multistream.MultistreamMuxer[ID].AddHandlerWithFunc
Protocols() []ID
Switch.Protocols
*github.com/multiformats/go-multistream.MultistreamMuxer[ID].Protocols
RemoveHandler(protocol ID)
Switch.RemoveHandler
*github.com/multiformats/go-multistream.MultistreamMuxer[ID].RemoveHandler
![]() |
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. |