mirror of https://github.com/poanetwork/gecko.git
21 lines
463 B
Go
21 lines
463 B
Go
// (c) 2019-2020, Ava Labs, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package network
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/ava-labs/gecko/ids"
|
|
)
|
|
|
|
// PeerID ...
|
|
type PeerID struct {
|
|
IP string `json:"ip"`
|
|
PublicIP string `json:"publicIP"`
|
|
ID ids.ShortID `json:"id"`
|
|
Version string `json:"version"`
|
|
LastSent time.Time `json:"lastSent"`
|
|
LastReceived time.Time `json:"lastReceived"`
|
|
}
|