github.com/ava-labs/avalanchego@v1.11.11/network/peer/info.go (about) 1 // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved. 2 // See the file LICENSE for licensing terms. 3 4 package peer 5 6 import ( 7 "net/netip" 8 "time" 9 10 "github.com/ava-labs/avalanchego/ids" 11 "github.com/ava-labs/avalanchego/utils/json" 12 "github.com/ava-labs/avalanchego/utils/set" 13 ) 14 15 type Info struct { 16 IP netip.AddrPort `json:"ip"` 17 PublicIP netip.AddrPort `json:"publicIP,omitempty"` 18 ID ids.NodeID `json:"nodeID"` 19 Version string `json:"version"` 20 LastSent time.Time `json:"lastSent"` 21 LastReceived time.Time `json:"lastReceived"` 22 ObservedUptime json.Uint32 `json:"observedUptime"` 23 ObservedSubnetUptimes map[ids.ID]json.Uint32 `json:"observedSubnetUptimes"` // Deprecated 24 TrackedSubnets set.Set[ids.ID] `json:"trackedSubnets"` 25 SupportedACPs set.Set[uint32] `json:"supportedACPs"` 26 ObjectedACPs set.Set[uint32] `json:"objectedACPs"` 27 }