Documentation ¶
Index ¶
- type Peer
- type PeerManager
- func (pm *PeerManager) AddPeer(peerType PeerType, peerPubKeyHash string) *Peer
- func (pm *PeerManager) DebugPrint()
- func (pm *PeerManager) GetPeer(peerPubKeyHash string) (*Peer, error)
- func (pm *PeerManager) GetPeerOfType(peerType PeerType, peerPubKeyHash string) (*Peer, error)
- func (pm *PeerManager) IsPeer(peerPubKeyHash string) bool
- func (pm *PeerManager) RemovePeer(peerPubKeyHash string)
- func (pm *PeerManager) UpdatePeer(peerPubKeyHash string, ip string)
- type PeerType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PeerManager ¶
type PeerManager struct {
// contains filtered or unexported fields
}
func PeerManagerInstance ¶
func PeerManagerInstance() *PeerManager
func (*PeerManager) AddPeer ¶
func (pm *PeerManager) AddPeer(peerType PeerType, peerPubKeyHash string) *Peer
func (*PeerManager) DebugPrint ¶
func (pm *PeerManager) DebugPrint()
func (*PeerManager) GetPeerOfType ¶
func (pm *PeerManager) GetPeerOfType(peerType PeerType, peerPubKeyHash string) (*Peer, error)
func (*PeerManager) IsPeer ¶
func (pm *PeerManager) IsPeer(peerPubKeyHash string) bool
func (*PeerManager) RemovePeer ¶
func (pm *PeerManager) RemovePeer(peerPubKeyHash string)
func (*PeerManager) UpdatePeer ¶
func (pm *PeerManager) UpdatePeer(peerPubKeyHash string, ip string)
Click to show internal directories.
Click to hide internal directories.