Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ID ¶
type ID string
ID is the union identity of peer.
func (ID) WeightCompare ¶
WeightCompare return whether weight of our ID is higher than other's. This function usually used to decide which peer should be saved when a conflict found with both peers.
Click to show internal directories.
Click to hide internal directories.