Versions in this module Expand all Collapse all v0 v0.1.1 Jan 13, 2024 v0.1.0 Nov 8, 2022 Changes in this version + type P2P struct + Ctx context.Context + Discovery *discoveryRouting.RoutingDiscovery + Host host.Host + KadDHT *dht.IpfsDHT + PubSub *pubsub.PubSub + func NewP2P(serviceName string, priv crypto.PrivKey, port string, subType PubSubHandleType) *P2P + func (p2p *P2P) AdvertiseConnect() + func (p2p *P2P) AnnounceConnect() + type PubSub struct + ClientName string + Host *P2P + Inbound chan chatmessage + Logs chan chatlog + Outbound chan string + TopicName string + func JoinPubSub(p2phost *P2P, clientName string, topicName string) (*PubSub, error) + func (cr *PubSub) Exit() + func (cr *PubSub) PeerList() []peer.ID + func (cr *PubSub) PubLoop() + func (cr *PubSub) SubLoop() + func (cr *PubSub) UpdateUser(username string) + type PubSubHandleType string + const PubSubHandleTypeFlood + const PubSubHandleTypeGossip