Skip to content

Go implementation for self-describing protocol identifiers

License

Notifications You must be signed in to change notification settings

vacp2p/go-multiprotocol

Repository files navigation

go-multiprotocol

Version MIT License API Reference Go Report Card Build Status

A lot of this code has been adapted from multiaddr.

Multiprotocol can be initialized using a CSV file, for the CSV format see the specification.

package main

import mp "github.com/vacp2p/go-multiprotocol"

err := mp.Init("testdata/multiprotocol.csv")
// err non-nil when parsing failed.

mp, err := mp.NewMultiprotocol("/vac/waku/2/store/2/relay/2")
// err non-nil when parsing failed.

Protocols can also be added programatically using the AddProtocol function.

About

Go implementation for self-describing protocol identifiers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published