Versions in this module Expand all Collapse all v0 v0.0.2 Jan 24, 2020 v0.0.1 Jan 24, 2020 Changes in this version + func ConvertToStrings(ids []ID) (res []string) + type HandlerFunc = func(protocol string, rwc io.ReadWriteCloser) error + 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) (string, HandlerFunc, error) + NegotiateLazy func(rwc io.ReadWriteCloser) (io.ReadWriteCloser, string, HandlerFunc, error) + type Router interface + AddHandler func(protocol string, handler HandlerFunc) + AddHandlerWithFunc func(protocol string, match func(string) bool, handler HandlerFunc) + Protocols func() []string + RemoveHandler func(protocol string) + type Switch interface