Versions in this module Expand all Collapse all v0 v0.4.0 Apr 7, 2024 Changes in this version + func Start(handler WebHandler) + type Entity struct + Entity *entity.Entity + P2P *p2p.P2P + func NewEntityHandler(p *p2p.P2P, e *entity.Entity) *Entity + func (data *Entity) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (data *Entity) WebHandler(w http.ResponseWriter, r *http.Request) + type EntityDocument struct + Addrs []multiaddr.Multiaddr + AllConnectedPeers p2peer.IDSlice + H1 string + H2 string + PeersWithSameRendez p2peer.IDSlice + Title string + func (d *EntityDocument) String() string + type Node struct + Node *entity.Entity + P2P *p2p.P2P + func NewNodeHandler(p *p2p.P2P, e *entity.Entity) *Node + func (data *Node) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (data *Node) WebHandler(w http.ResponseWriter, r *http.Request) + type NodeDocument struct + Addrs []multiaddr.Multiaddr + AllConnectedPeers peer.IDSlice + H1 string + H2 string + PeersWithSameRendez peer.IDSlice + Title string + Topics []string + func (d *NodeDocument) String() string + type Relay struct + P2P *p2p.P2P + func NewRelayHandler(p *p2p.P2P) *Relay + func (data *Relay) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (data *Relay) WebHandler(w http.ResponseWriter, r *http.Request) + type RelayDocument struct + Addrs []multiaddr.Multiaddr + H1 string + ProtectedPeers p2peer.IDSlice + Title string + UnprotectedPeers p2peer.IDSlice + func (d *RelayDocument) String() string + type WebHandler interface + ServeHTTP func(w http.ResponseWriter, r *http.Request)