prysm-pulse/beacon-chain/p2p/peers/info.go
Jim McDonald 53523b3eef Implement ListPeers API call (#4151)
* update ethereumapis from https://github.com/prysmaticlabs/ethereumapis/pull/55
* add stub for https://github.com/prysmaticlabs/prysm/issues/4141
* Add ListPeers API call
* Merge
* Add comment for exported method
* Fix visibility of new peers package.
* Merge branch 'master' into peersapi
2019-11-30 05:36:02 +00:00

13 lines
242 B
Go

package peers
import (
"github.com/libp2p/go-libp2p-core/network"
"github.com/libp2p/go-libp2p-core/peer"
)
// Info provides information about a peer connection.
type Info struct {
AddrInfo *peer.AddrInfo
Direction network.Direction
}