Packages

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] = _root_.scala.collection.immutable.Map.empty, errors: Seq[TimestampedError] = _root_.scala.Seq.empty, flapCount: Int = 0, lastFlapNs: Long = 0L, 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.

Annotations
@SerialVersionUID()
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Peer
  2. Product
  3. Equals
  4. Updatable
  5. GeneratedMessage
  6. Serializable
  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: 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] = _root_.scala.collection.immutable.Map.empty, errors: Seq[TimestampedError] = _root_.scala.Seq.empty, flapCount: Int = 0, lastFlapNs: Long = 0L, 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.

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[(Int, Feature)]): Peer
  6. def addErrors(__vs: TimestampedError*): Peer
  7. def addFeatures(__vs: (Int, Feature)*): Peer
  8. val address: String
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. val bytesRecv: Long
  11. val bytesSent: Long
  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
    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[Int, 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. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. val pingTime: Long
  32. def productElementNames: Iterator[String]
    Definition Classes
    Product
  33. val pubKey: String
  34. val satRecv: Long
  35. val satSent: Long
  36. def serializedSize: Int
    Definition Classes
    Peer → GeneratedMessage
  37. val syncType: SyncType
  38. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  39. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  40. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  41. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  42. def toProtoString: String
    Definition Classes
    Peer → GeneratedMessage
  43. val unknownFields: UnknownFieldSet
  44. def update(ms: (Lens[Peer, Peer]) => Mutation[Peer]*): Peer
    Definition Classes
    Updatable
  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  48. def withAddress(__v: String): Peer
  49. def withBytesRecv(__v: Long): Peer
  50. def withBytesSent(__v: Long): Peer
  51. def withErrors(__v: Seq[TimestampedError]): Peer
  52. def withFeatures(__v: Map[Int, Feature]): Peer
  53. def withFlapCount(__v: Int): Peer
  54. def withInbound(__v: Boolean): Peer
  55. def withLastFlapNs(__v: Long): Peer
  56. def withPingTime(__v: Long): Peer
  57. def withPubKey(__v: String): Peer
  58. def withSatRecv(__v: Long): Peer
  59. def withSatSent(__v: Long): Peer
  60. def withSyncType(__v: SyncType): Peer
  61. def withUnknownFields(__v: UnknownFieldSet): Peer
  62. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  63. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    Peer → GeneratedMessage
  64. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Inherited from Product

Inherited from Equals

Inherited from Updatable[Peer]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped