final case class Peer(pubKey: String = "", address: String = "", bytesSent: Long = 0L, bytesRecv: Long = 0L, satSent: Long = 0L, satRecv: Long = 0L, inbound: Boolean = false, pingTime: Long = 0L, syncType: SyncType = lnrpc.Peer.SyncType.UNKNOWN_SYNC, features: Map[Int, Feature] = ..., errors: Seq[TimestampedError] = _root_.scala.Seq.empty, flapCount: Int = 0, lastFlapNs: Long = 0L, unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[Peer] with Product with Serializable
- pubKey
The identity pubkey of the peer
- address
Network address of the peer; eg
127.0.0.1:10011
- bytesSent
Bytes of data transmitted to this peer
- bytesRecv
Bytes of data transmitted from this peer
- satSent
Satoshis sent to this peer
- satRecv
Satoshis received from this peer
- inbound
A channel is inbound if the counterparty initiated the channel
- pingTime
Ping time to this peer
- syncType
The type of sync we are currently performing with this peer.
- features
Features advertised by the remote peer in their init message.
- errors
The latest errors received from our peer with timestamps, limited to the 10 most recent errors. These errors are tracked across peer connections, but are not persisted across lnd restarts. Note that these errors are only stored for peers that we have channels open with, to prevent peers from spamming us with errors at no cost.
- flapCount
The number of times we have recorded this peer going offline or coming online, recorded across restarts. Note that this value is decreased over time if the peer has not recently flapped, so that we can forgive peers with historically high flap counts.
- lastFlapNs
The timestamp of the last flap we observed for this peer. If this value is zero, we have not observed any flaps for this peer.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- Peer
- Updatable
- GeneratedMessage
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Peer(pubKey: String = "", address: String = "", bytesSent: Long = 0L, bytesRecv: Long = 0L, satSent: Long = 0L, satRecv: Long = 0L, inbound: Boolean = false, pingTime: Long = 0L, syncType: SyncType = lnrpc.Peer.SyncType.UNKNOWN_SYNC, features: Map[Int, Feature] = ..., errors: Seq[TimestampedError] = _root_.scala.Seq.empty, flapCount: Int = 0, lastFlapNs: Long = 0L, unknownFields: UnknownFieldSet = ...)
- pubKey
The identity pubkey of the peer
- address
Network address of the peer; eg
127.0.0.1:10011
- bytesSent
Bytes of data transmitted to this peer
- bytesRecv
Bytes of data transmitted from this peer
- satSent
Satoshis sent to this peer
- satRecv
Satoshis received from this peer
- inbound
A channel is inbound if the counterparty initiated the channel
- pingTime
Ping time to this peer
- syncType
The type of sync we are currently performing with this peer.
- features
Features advertised by the remote peer in their init message.
- errors
The latest errors received from our peer with timestamps, limited to the 10 most recent errors. These errors are tracked across peer connections, but are not persisted across lnd restarts. Note that these errors are only stored for peers that we have channels open with, to prevent peers from spamming us with errors at no cost.
- flapCount
The number of times we have recorded this peer going offline or coming online, recorded across restarts. Note that this value is decreased over time if the peer has not recently flapped, so that we can forgive peers with historically high flap counts.
- lastFlapNs
The timestamp of the last flap we observed for this peer. If this value is zero, we have not observed any flaps for this peer.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllErrors(__vs: Iterable[TimestampedError]): Peer
- def addAllFeatures(__vs: Iterable[(Int, Feature)]): Peer
- def addErrors(__vs: TimestampedError*): Peer
- def addFeatures(__vs: (Int, Feature)*): Peer
- val address: String
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val bytesRecv: Long
- val bytesSent: Long
- def clearErrors: Peer
- def clearFeatures: Peer
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
companion: Peer.type
- Definition Classes
- Peer → GeneratedMessage
- def discardUnknownFields: Peer
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val errors: Seq[TimestampedError]
- val features: Map[Int, Feature]
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val flapCount: Int
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getField(__field: FieldDescriptor): PValue
- Definition Classes
- Peer → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- Peer → GeneratedMessage
- val inbound: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val lastFlapNs: Long
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val pingTime: Long
- val pubKey: String
- val satRecv: Long
- val satSent: Long
-
def
serializedSize: Int
- Definition Classes
- Peer → GeneratedMessage
- val syncType: SyncType
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
-
final
def
toByteString: ByteString
- Definition Classes
- GeneratedMessage
-
final
def
toPMessage: PMessage
- Definition Classes
- GeneratedMessage
-
def
toProtoString: String
- Definition Classes
- Peer → GeneratedMessage
- val unknownFields: UnknownFieldSet
-
def
update(ms: (Lens[Peer, Peer]) ⇒ Mutation[Peer]*): Peer
- Definition Classes
- Updatable
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def withAddress(__v: String): Peer
- def withBytesRecv(__v: Long): Peer
- def withBytesSent(__v: Long): Peer
- def withErrors(__v: Seq[TimestampedError]): Peer
- def withFeatures(__v: Map[Int, Feature]): Peer
- def withFlapCount(__v: Int): Peer
- def withInbound(__v: Boolean): Peer
- def withLastFlapNs(__v: Long): Peer
- def withPingTime(__v: Long): Peer
- def withPubKey(__v: String): Peer
- def withSatRecv(__v: Long): Peer
- def withSatSent(__v: Long): Peer
- def withSyncType(__v: SyncType): Peer
- def withUnknownFields(__v: UnknownFieldSet): Peer
-
final
def
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- Peer → GeneratedMessage
-
final
def
writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage