Documentation ¶
Index ¶
- type Peers
- func (p *Peers) AddPeer(peer *types.Peer)
- func (p *Peers) AddressExist(address *peer.AddrInfo) bool
- func (p *Peers) Count() uint32
- func (p *Peers) Info() map[string]interface{}
- func (p *Peers) Local() *types.Peer
- func (p *Peers) Name() string
- func (p *Peers) Peer(id string) *types.Peer
- func (p *Peers) PeersInfo() []*types.Local
- func (p *Peers) PeersMap() map[string]*types.Peer
- func (p *Peers) RandomPeer() *types.Peer
- func (p *Peers) RemovePeer(reId string)
- func (p *Peers) SetLocal(local *types.Peer)
- func (p *Peers) SetSpeed(id string, speed uint64)
- func (p *Peers) Start() error
- func (p *Peers) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peers ¶
type Peers struct {
// contains filtered or unexported fields
}
func NewPeers ¶
func NewPeers(reqHandler request2.IRequestHandler) *Peers
func (*Peers) RandomPeer ¶
func (*Peers) RemovePeer ¶
Click to show internal directories.
Click to hide internal directories.