Packages

final case class Peer(pubKey: String = "", address: String = "", bytesSent: UInt64 = lnrpc.Peer._typemapper_bytesSent.toCustom(0L), bytesRecv: UInt64 = lnrpc.Peer._typemapper_bytesRecv.toCustom(0L), satSent: Long = 0L, satRecv: Long = 0L, inbound: Boolean = false, pingTime: Long = 0L, syncType: SyncType = lnrpc.Peer.SyncType.UNKNOWN_SYNC, features: Map[UInt32, Feature] = _root_.scala.collection.immutable.Map.empty, errors: Seq[TimestampedError] = _root_.scala.Seq.empty, flapCount: Int = 0, lastFlapNs: Long = 0L, lastPingPayload: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) 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.

lastPingPayload

The last ping payload the peer has sent to us.

Annotations
@SerialVersionUID()
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Peer
  2. Updatable
  3. GeneratedMessage
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Peer(pubKey: String = "", address: String = "", bytesSent: UInt64 = lnrpc.Peer._typemapper_bytesSent.toCustom(0L), bytesRecv: UInt64 = lnrpc.Peer._typemapper_bytesRecv.toCustom(0L), satSent: Long = 0L, satRecv: Long = 0L, inbound: Boolean = false, pingTime: Long = 0L, syncType: SyncType = lnrpc.Peer.SyncType.UNKNOWN_SYNC, features: Map[UInt32, Feature] = _root_.scala.collection.immutable.Map.empty, errors: Seq[TimestampedError] = _root_.scala.Seq.empty, flapCount: Int = 0, lastFlapNs: Long = 0L, lastPingPayload: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)

    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.

    lastPingPayload

    The last ping payload the peer has sent to us.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAllErrors(__vs: Iterable[TimestampedError]): Peer
  5. def addAllFeatures(__vs: Iterable[(UInt32, Feature)]): Peer
  6. def addErrors(__vs: TimestampedError*): Peer
  7. def addFeatures(__vs: (UInt32, Feature)*): Peer
  8. val address: String
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. val bytesRecv: UInt64
  11. val bytesSent: UInt64
  12. def clearErrors: Peer
  13. def clearFeatures: Peer
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  15. def companion: Peer.type
    Definition Classes
    Peer → GeneratedMessage
  16. def discardUnknownFields: Peer
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. val errors: Seq[TimestampedError]
  19. val features: Map[UInt32, Feature]
  20. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  21. val flapCount: Int
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    Peer → GeneratedMessage
  24. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    Peer → GeneratedMessage
  25. val inbound: Boolean
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. val lastFlapNs: Long
  28. val lastPingPayload: ByteString
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. val pingTime: Long
  33. def productElementNames: Iterator[String]
    Definition Classes
    Product
  34. val pubKey: String
  35. val satRecv: Long
  36. val satSent: Long
  37. def serializedSize: Int
    Definition Classes
    Peer → GeneratedMessage
  38. val syncType: SyncType
  39. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  40. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  41. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  42. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  43. def toProtoString: String
    Definition Classes
    Peer → GeneratedMessage
  44. val unknownFields: UnknownFieldSet
  45. def update(ms: (Lens[Peer, Peer]) => Mutation[Peer]*): Peer
    Definition Classes
    Updatable
  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  49. def withAddress(__v: String): Peer
  50. def withBytesRecv(__v: UInt64): Peer
  51. def withBytesSent(__v: UInt64): Peer
  52. def withErrors(__v: Seq[TimestampedError]): Peer
  53. def withFeatures(__v: Map[UInt32, Feature]): Peer
  54. def withFlapCount(__v: Int): Peer
  55. def withInbound(__v: Boolean): Peer
  56. def withLastFlapNs(__v: Long): Peer
  57. def withLastPingPayload(__v: ByteString): Peer
  58. def withPingTime(__v: Long): Peer
  59. def withPubKey(__v: String): Peer
  60. def withSatRecv(__v: Long): Peer
  61. def withSatSent(__v: Long): Peer
  62. def withSyncType(__v: SyncType): Peer
  63. def withUnknownFields(__v: UnknownFieldSet): Peer
  64. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  65. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    Peer → GeneratedMessage
  66. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Inherited from Updatable[Peer]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped