fix: need to export methods for now
This commit is contained in:
parent
b8cb37f99e
commit
cb23f21ecc
|
@ -14,9 +14,9 @@ type P2PService interface {
|
||||||
Stop() error
|
Stop() error
|
||||||
Init() error
|
Init() error
|
||||||
ConnectToNode(connectionUris []*url.URL, retried bool) error
|
ConnectToNode(connectionUris []*url.URL, retried bool) error
|
||||||
onNewPeer(peer *net.Peer, verifyId bool) error
|
OnNewPeer(peer *net.Peer, verifyId bool) error
|
||||||
onNewPeerListen(peer *net.Peer, verifyId bool)
|
OnNewPeerListen(peer *net.Peer, verifyId bool)
|
||||||
readNodeScore(nodeId *encoding.NodeId) (NodeVotes, error)
|
ReadNodeScore(nodeId *encoding.NodeId) (NodeVotes, error)
|
||||||
getNodeScore(nodeId *encoding.NodeId) (float64, error)
|
GetNodeScore(nodeId *encoding.NodeId) (float64, error)
|
||||||
SortNodesByScore(nodes []*encoding.NodeId) ([]*encoding.NodeId, error)
|
SortNodesByScore(nodes []*encoding.NodeId) ([]*encoding.NodeId, error)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue