Versions in this module Expand all Collapse all v0 v0.2.0 Apr 23, 2023 v0.1.0 Apr 23, 2023 Changes in this version + const ProtocolHttp + const ProtocolWS + var BootStrapPeers = []string + func NewHostWithKey(privateKey crypto.PrivKey, port int, baseAddrs []string) (hps *holepunch.Service, dhtOut *dht.IpfsDHT, err error) + type Mesh struct + DHT *dht.IpfsDHT + HolePunchService *holepunch.Service + Host host.Host + Port int + PublicIp string + ResourceManager *ResourceManager + func New(keystr string, port int) (*Mesh, error) + func (m *Mesh) PublicMultiAddr() ([]ma.Multiaddr, error) + type ResourceManager struct + func NewResourceManager() (*ResourceManager, error) + func (r *ResourceManager) OpenStream(p peer.ID, dir network.Direction) (network.StreamManagementScope, error) + func (r *ResourceManager) Register(pid peer.ID) <-chan struct{} + func (r *ResourceManager) Unregister(pid peer.ID) + type StreamManagementScope struct + func (s *StreamManagementScope) SetProtocol(proto protocol.ID) error