Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peer ¶
type Peer struct { // OnMessage is triggered when the peer receives a message OnMessage func(*xdr.StellarMessage) // PeerInfo contains information about the connected peer PeerInfo *xdr.Hello Address string // contains filtered or unexported fields }
Peer represents a connection to a peer
func (*Peer) AnnounceTransaction ¶
func (peer *Peer) AnnounceTransaction(tx xdr.TransactionEnvelope)
AnnounceTransaction informs peer of a transaction
func (*Peer) GetPeerAddresses ¶
func (peer *Peer) GetPeerAddresses()
GetPeerAddresses gets a list of peers
func (*Peer) GetScpQuorumset ¶
GetScpQuorumset gets scp quorum set
func (*Peer) MustRespond ¶
func (peer *Peer) MustRespond()
MustRespond indicates to the connection that it should expect a response soon or throw an error.
Click to show internal directories.
Click to hide internal directories.