Documentation ¶
Index ¶
- func CheckAndSortTxSetAsBundle(txSet []*Transaction) ([]*Transaction, error)
- func CheckBundle(txSet []Transaction) error
- func ExtractBundleTransactionsByTail(tail *Transaction, allTx []Transaction) []*Transaction
- func FindTail(txs Transactions) *Transaction
- func FindTransactionObjects(query FindTransactionsQuery, api *API) (Transactions, error)
- func FindTransactionObjectsMulti(query FindTransactionsQuery, mapi multiapi.MultiAPI, ...) (Transactions, error)
- func FindTxByHash(hash Trytes, txList []Transaction) (*Transaction, bool)
- func FindTxByHashP(hash Trytes, txList []*Transaction) (*Transaction, bool)
- func GetMiotaPriceUSD() (float64, error)
- func IsAnyConfirmed(transactions Hashes, api *API) (bool, error)
- func IsAnyConfirmedMulti(transactions Hashes, mapi multiapi.MultiAPI, ret *multiapi.MultiCallRet) (bool, error)
- func IsBundleHashConfirmed(bundleHash Trytes, api *API) (bool, error)
- func IsBundleHashConfirmedMulti(bundleHash Trytes, mapi multiapi.MultiAPI, ret *multiapi.MultiCallRet) (bool, error)
- func KerlTrytes(s Trytes) (Trytes, error)
- func Max(a, b int) int
- func Min(a, b int) int
- func OpenSocket(uri string, timeoutSec int) (zmq4.Socket, error)
- func OpenSocketAndSubscribe(uri string, topics []string) (zmq4.Socket, error)
- func SinceUnixMs(ts uint64) uint64
- func StringInSlice(a string, list []string) bool
- func TailFromBundleTrytes(bundleTrytes []Trytes) (*Transaction, error)
- func TransactionSetToBundleTrytes(txSet []*Transaction) ([]Trytes, error)
- func TrytesInSet(a Trytes, list []Trytes) bool
- func UnixMs(t time.Time) uint64
- func UnixMsNow() uint64
- func UnixSec(t time.Time) uint64
- func Wfile(s string)
- type DummyAEC
- type ErrorCounter
- type RingArray
- type RotateWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndSortTxSetAsBundle ¶
func CheckAndSortTxSetAsBundle(txSet []*Transaction) ([]*Transaction, error)
check consistency of the indices of the set and return sorted slice. if finds inconsistency, returns same set and error
func CheckBundle ¶
func CheckBundle(txSet []Transaction) error
check consistency of the indices of the set and return error if not consistent
func ExtractBundleTransactionsByTail ¶
func ExtractBundleTransactionsByTail(tail *Transaction, allTx []Transaction) []*Transaction
func FindTransactionObjects ¶
func FindTransactionObjects(query FindTransactionsQuery, api *API) (Transactions, error)
Finds transactions, loads trytes (in pieces if necessary) and parses to transactions
func FindTransactionObjectsMulti ¶
func FindTransactionObjectsMulti(query FindTransactionsQuery, mapi multiapi.MultiAPI, apiret *multiapi.MultiCallRet) (Transactions, error)
func FindTxByHash ¶
func FindTxByHash(hash Trytes, txList []Transaction) (*Transaction, bool)
by hash find specific tx in a set of transaction
func FindTxByHashP ¶
func FindTxByHashP(hash Trytes, txList []*Transaction) (*Transaction, bool)
func GetMiotaPriceUSD ¶
func IsAnyConfirmed ¶
func IsAnyConfirmedMulti ¶
func IsBundleHashConfirmed ¶
func OpenSocketAndSubscribe ¶
func SinceUnixMs ¶
func StringInSlice ¶
func TailFromBundleTrytes ¶
func TailFromBundleTrytes(bundleTrytes []Trytes) (*Transaction, error)
func TransactionSetToBundleTrytes ¶
func TransactionSetToBundleTrytes(txSet []*Transaction) ([]Trytes, error)
func TrytesInSet ¶
func TrytesInSet(a Trytes, list []Trytes) bool
Types ¶
type ErrorCounter ¶
type RingArray ¶
type RingArray struct {
// contains filtered or unexported fields
}
func NewRingArray ¶
type RotateWriter ¶
type RotateWriter struct {
// contains filtered or unexported fields
}
func NewRotateWriter ¶
func NewRotateWriter(dir string, filename string, rot time.Duration, retain time.Duration) (*RotateWriter, error)
Make a new RotateWriter. Return nil if error occurs during setup.
Click to show internal directories.
Click to hide internal directories.