Documentation ¶
Index ¶
- type Abort
- type Engine
- type Intish
- type Keyish
- type NetEngine
- func (e NetEngine) GetAccount(accountUrl *URL) (protocol.Account, error)
- func (e NetEngine) GetDirectory(account *URL) ([]*URL, error)
- func (e NetEngine) GetTransaction(txid [32]byte) (*protocol.Transaction, error)
- func (e NetEngine) Submit(envelope *protocol.Envelope) (*protocol.TransactionStatus, error)
- func (e NetEngine) WaitFor(hash [32]byte) ([]*protocol.TransactionStatus, []*protocol.Transaction, error)
- type Output
- type Session
- func (s *Session) Abort(value interface{})
- func (s *Session) Abortf(format string, args ...interface{})
- func (s *Session) AcmeAmount(v float64) *big.Int
- func (s *Session) Amount(v float64, precision uint64) *big.Int
- func (s *Session) Dump(v interface{})
- func (s *Session) Faucet(account Urlish) *submittedTxn
- func (s *Session) GenerateKey(values ...interface{}) ed25519.PrivateKey
- func (s *Session) Get(query interface{}, subquery ...interface{}) interface{}
- func (s *Session) GetAccount(query Urlish) protocol.Account
- func (s *Session) GetAccountAs(query Urlish, target interface{})
- func (s *Session) GetDirectory(query Urlish) []*URL
- func (s *Session) KeyEntry() bldKeyEntry
- func (s *Session) LiteAddress(key interface{}, token Urlish) *URL
- func (s *Session) Print(v interface{})
- func (s *Session) SetStartTime(time time.Time)
- func (s *Session) Show(v interface{})
- func (s *Session) Transaction(principal Urlish) bldTxn
- func (s *Session) TryGetAccount(query Urlish) (protocol.Account, bool)
- func (s *Session) TryGetAccountAs(query Urlish, target interface{}) bool
- func (s *Session) TryGetDirectory(query Urlish) ([]*URL, bool)
- func (s *Session) UseNetwork(client *client.Client)
- func (s *Session) UseSimulator(bvnCount int)
- func (s *Session) WaitForSubmitted() []completedFlow
- type SimEngine
- func (s SimEngine) GetAccount(url *URL) (protocol.Account, error)
- func (s SimEngine) GetDirectory(account *URL) ([]*URL, error)
- func (s SimEngine) GetTransaction(hash [32]byte) (*protocol.Transaction, error)
- func (s SimEngine) Submit(envelope *protocol.Envelope) (*protocol.TransactionStatus, error)
- func (s SimEngine) WaitFor(hash [32]byte) ([]*protocol.TransactionStatus, []*protocol.Transaction, error)
- type URL
- type Urlish
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine interface { GetAccount(*URL) (protocol.Account, error) GetDirectory(*URL) ([]*url.URL, error) GetTransaction([32]byte) (*protocol.Transaction, error) Submit(*protocol.Envelope) (*protocol.TransactionStatus, error) WaitFor([32]byte) ([]*protocol.TransactionStatus, []*protocol.Transaction, error) }
type Intish ¶
type Intish = interface{}
Intish indicates that the parameter must be convertable to an integer.
type Keyish ¶
type Keyish = interface{}
Keyish indicates that the parameter must be convertable to a key.
type NetEngine ¶
func (NetEngine) GetAccount ¶
func (NetEngine) GetTransaction ¶
func (e NetEngine) GetTransaction(txid [32]byte) (*protocol.Transaction, error)
func (NetEngine) WaitFor ¶
func (e NetEngine) WaitFor(hash [32]byte) ([]*protocol.TransactionStatus, []*protocol.Transaction, error)
type Session ¶
type Session struct { Filename string Output func(...Output) Engine Engine // contains filtered or unexported fields }
func (*Session) GenerateKey ¶
func (s *Session) GenerateKey(values ...interface{}) ed25519.PrivateKey
func (*Session) GetAccountAs ¶
func (*Session) GetDirectory ¶
func (*Session) LiteAddress ¶
func (*Session) SetStartTime ¶
func (*Session) Transaction ¶
func (*Session) TryGetAccount ¶
func (*Session) TryGetAccountAs ¶
func (*Session) UseNetwork ¶
func (*Session) UseSimulator ¶
func (*Session) WaitForSubmitted ¶
func (s *Session) WaitForSubmitted() []completedFlow
type SimEngine ¶
func (SimEngine) GetTransaction ¶
func (s SimEngine) GetTransaction(hash [32]byte) (*protocol.Transaction, error)
func (SimEngine) WaitFor ¶
func (s SimEngine) WaitFor(hash [32]byte) ([]*protocol.TransactionStatus, []*protocol.Transaction, error)
Click to show internal directories.
Click to hide internal directories.