Documentation ¶
Index ¶
- type Peers
- func (p *Peers) APIs() []rpc.API
- func (p *Peers) Add(id string, Addr string)
- func (p *Peers) All() []*db.Peer
- func (p *Peers) Count() int
- func (p *Peers) FindPeerList() []*db.Peer
- func (p *Peers) LoadPeers()
- func (p *Peers) Start() error
- func (p *Peers) Stop() error
- func (p *Peers) UpdateConnectTime(id string, timestamp int64)
- func (p *Peers) UpdateUnConnected(id string)
- type PeersApi
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 (*Peers) FindPeerList ¶
func (*Peers) UpdateConnectTime ¶
func (*Peers) UpdateUnConnected ¶
type PeersApi ¶
type PeersApi struct {
// contains filtered or unexported fields
}
func NewPeersApi ¶
func (*PeersApi) GetNodeList ¶
Click to show internal directories.
Click to hide internal directories.