Versions in this module Expand all Collapse all v0 v0.29.0 Jul 29, 2023 Changes in this version + func ConvertToStrings(ids []ID) (res []string) + type HandlerFunc = multistream.HandlerFunc[ID] + type ID string + const TestingID + func ConvertFromStrings(ids []string) (res []ID) + type Negotiator interface + Handle func(rwc io.ReadWriteCloser) error + Negotiate func(rwc io.ReadWriteCloser) (ID, HandlerFunc, error) + type Router interface + AddHandler func(protocol ID, handler HandlerFunc) + AddHandlerWithFunc func(protocol ID, match func(ID) bool, handler HandlerFunc) + Protocols func() []ID + RemoveHandler func(protocol ID) + type Switch interface