Registry / networking / multiformats-go-multistream

multiformats-go-multistream

JSON →
library0.6.1gogounverified

Package multistream implements a simple stream router for the multistream-select protocol.

go get github.com/multiformats/go-multistream
INSTALL
IMPORT
SIG · MULTIFORMATS-GO-MU
M
multiformats-go-multistream
networkinggov0.6.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

multistream
github.com/multiformats/go-multistream

Create a multistream muxer and add a handler.

package main import ( "fmt" "github.com/multiformats/go-multistream" ) func main() { ms := multistream.NewMultistreamMuxer() ms.AddHandler("/hello/1.0.0", func(protocol string, rwc io.ReadWriteCloser) error { fmt.Fprintf(rwc, "Hello!") return nil }) fmt.Println("Multistream muxer created") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.6.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
multiformats-go-multistream — go get multiformats-go-multistream · libregistry