Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
// Peer returns the peer with the given ID.
Peer(id uint64) (*core.Endpoint, error)
// All returns all peers.
All() map[uint64]*core.Endpoint
// Suitable returns peers that are suitable given the supplied requirements.
Suitable(threshold uint32) ([]*core.Endpoint, error)
}
Service provides peer information.
Click to show internal directories.
Click to hide internal directories.