Documentation ¶
Index ¶
Constants ¶
View Source
const Timeout = time.Minute
Variables ¶
View Source
var URIs []string = []string{
"wss://s-west.ripple.com:443",
"wss://s-east.ripple.com:443",
"wss://s1.ripple.com:443",
}
Functions ¶
This section is empty.
Types ¶
type Amount ¶
func (*Amount) UnmarshalJSON ¶
type Connection ¶
type Connection struct { Ledgers chan *Ledger // contains filtered or unexported fields }
func NewConnection ¶
func NewConnection(uri string) (c *Connection, err error)
func (*Connection) GetLedger ¶
func (c *Connection) GetLedger(idx uint64) (err error)
type LedgerEmitter ¶
type LedgerEmitter interface {
Ledgers() chan *Ledger
}
type Message ¶
type Message struct { Id int Type string Result *Result Status string Error string LedgerHash string `json:"ledger_hash"` LedgerIndex uint64 `json:"ledger_index"` LedgerTime Time `json:"ledger_time"` Transaction *Transaction TxnCount int `json:"txn_count"` ServerStatus string `json:"server_status"` Validated bool Meta *Meta `json:"meta"` }
type Time ¶
func (*Time) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.