Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxLedgerAge = 10 * time.Second IncrementForMaxLedgerBounds = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultLedgerNumberTracker ¶
type DefaultLedgerNumberTracker struct {
// contains filtered or unexported fields
}
func NewLedgerNumberTracker ¶
func NewLedgerNumberTracker(hClient horizonclient.ClientInterface) (*DefaultLedgerNumberTracker, error)
func (*DefaultLedgerNumberTracker) GetLedgerBounds ¶
func (se *DefaultLedgerNumberTracker) GetLedgerBounds() (*txnbuild.LedgerBounds, error)
func (*DefaultLedgerNumberTracker) GetLedgerNumber ¶
func (se *DefaultLedgerNumberTracker) GetLedgerNumber() (int, error)
type LedgerNumberTracker ¶
type LedgerNumberTracker interface { GetLedgerNumber() (int, error) GetLedgerBounds() (*txnbuild.LedgerBounds, error) }
LedgerNumberTracker is a helper struct that keeps track of the current ledger number.
Click to show internal directories.
Click to hide internal directories.