Documentation
¶
Index ¶
- type P2PServer
- func (p2p *P2PServer) BroadcastMessage(message string)
- func (p2p *P2PServer) ExposeFirstPeerForInput()
- func (p2p *P2PServer) GetConnectedClients() map[string]*websocket.Conn
- func (p2p *P2PServer) GetConnections() map[string]string
- func (p2p *P2PServer) Shutdown()
- func (p2p *P2PServer) Start(peers ...string)
- func (p2p *P2PServer) StartTls(certFile, certKey string, peers ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type P2PServer ¶
type P2PServer struct {
// contains filtered or unexported fields
}
func (*P2PServer) BroadcastMessage ¶ added in v1.0.7
func (*P2PServer) ExposeFirstPeerForInput ¶
func (p2p *P2PServer) ExposeFirstPeerForInput()
func (*P2PServer) GetConnectedClients ¶ added in v1.0.6
func (*P2PServer) GetConnections ¶
Click to show internal directories.
Click to hide internal directories.