Documentation ¶
Index ¶
- type AccountRawTransactionRow
- type AccountRawTransactionRowSigner
- type AccountRawTransactionRowSignerKeyInfo
- type AccountRawTransactions
- type AccountRawTransactionsListFilter
- type AccountRawTransactionsListOrder
- type AccountRawTransactionsTotal
- type AccountRawTransactionsTotalView
- type AccountRawTransactionsView
- func (accountMessagesView *AccountRawTransactionsView) AccountListByHeight(height int64) ([]string, error)
- func (accountMessagesView *AccountRawTransactionsView) InsertAll(rows []AccountRawTransactionRow) error
- func (accountMessagesView *AccountRawTransactionsView) List(filter AccountRawTransactionsListFilter, order AccountRawTransactionsListOrder, ...) ([]AccountRawTransactionRow, *pagination_interface.PaginationResult, error)
- type MockAccountRawTransactionsTotalView
- func (view *MockAccountRawTransactionsTotalView) DecrementAll(identities []string, total int64) error
- func (view *MockAccountRawTransactionsTotalView) FindBy(identity string) (int64, error)
- func (view *MockAccountRawTransactionsTotalView) Increment(identity string, total int64) error
- func (view *MockAccountRawTransactionsTotalView) IncrementAll(identities []string, total int64) error
- func (view *MockAccountRawTransactionsTotalView) Set(identity string, total int64) error
- func (view *MockAccountRawTransactionsTotalView) SumBy(identities []string) (int64, error)
- type MockAccountRawTransactionsView
- func (accountRawTransactionsView *MockAccountRawTransactionsView) AccountListByHeight(height int64) ([]string, error)
- func (accountRawTransactionsView *MockAccountRawTransactionsView) InsertAll(rows []AccountRawTransactionRow) error
- func (accountRawTransactionsView *MockAccountRawTransactionsView) List(filter AccountRawTransactionsListFilter, order AccountRawTransactionsListOrder, ...) ([]AccountRawTransactionRow, *pagination_interface.PaginationResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountRawTransactionRow ¶
type AccountRawTransactionRow struct { Account string `json:"account,omitempty"` BlockHeight int64 `json:"blockHeight"` BlockHash string `json:"blockHash"` BlockTime utctime.UTCTime `json:"blockTime"` Hash string `json:"hash"` Success bool `json:"success"` Code int `json:"code"` Log string `json:"log"` Fee coin.Coins `json:"fee"` FeePayer string `json:"feePayer"` FeeGranter string `json:"feeGranter"` GasWanted int `json:"gasWanted"` GasUsed int `json:"gasUsed"` Memo string `json:"memo"` TimeoutHeight int64 `json:"timeoutHeight"` Messages []map[string]interface{} `json:"messages"` Signers []AccountRawTransactionRowSigner `json:"signers"` }
type AccountRawTransactionRowSigner ¶
type AccountRawTransactionRowSigner struct { MaybeKeyInfo *AccountRawTransactionRowSignerKeyInfo `json:"keyInfo"` Address string `json:"address"` AccountSequence uint64 `json:"accountSequence"` }
type AccountRawTransactions ¶
type AccountRawTransactions interface { InsertAll(rows []AccountRawTransactionRow) error List( filter AccountRawTransactionsListFilter, order AccountRawTransactionsListOrder, pagination *pagination_interface.Pagination, ) ([]AccountRawTransactionRow, *pagination_interface.PaginationResult, error) AccountListByHeight(int64) ([]string, error) }
func NewAccountRawTransactionsView ¶
func NewAccountRawTransactionsView(handle *rdb.Handle) AccountRawTransactions
func NewMockAccountRawTransactionsView ¶
func NewMockAccountRawTransactionsView(_ *rdb.Handle) AccountRawTransactions
type AccountRawTransactionsTotal ¶
type AccountRawTransactionsTotal interface { Set(string, int64) error Increment(string, int64) error IncrementAll([]string, int64) error DecrementAll([]string, int64) error FindBy(string) (int64, error) SumBy([]string) (int64, error) }
func NewAccountRawTransactionsTotalView ¶
func NewAccountRawTransactionsTotalView(rdbHandle *rdb.Handle) AccountRawTransactionsTotal
func NewMockAccountRawTransactionsTotalView ¶
func NewMockAccountRawTransactionsTotalView(_ *rdb.Handle) AccountRawTransactionsTotal
type AccountRawTransactionsView ¶
type AccountRawTransactionsView struct {
// contains filtered or unexported fields
}
AccountRawTransactionsView projection view implemented by relational database
func (*AccountRawTransactionsView) AccountListByHeight ¶ added in v1.5.7
func (accountMessagesView *AccountRawTransactionsView) AccountListByHeight(height int64) ([]string, error)
func (*AccountRawTransactionsView) InsertAll ¶
func (accountMessagesView *AccountRawTransactionsView) InsertAll( rows []AccountRawTransactionRow, ) error
func (*AccountRawTransactionsView) List ¶
func (accountMessagesView *AccountRawTransactionsView) List( filter AccountRawTransactionsListFilter, order AccountRawTransactionsListOrder, pagination *pagination_interface.Pagination, ) ([]AccountRawTransactionRow, *pagination_interface.PaginationResult, error)
type MockAccountRawTransactionsTotalView ¶
func (*MockAccountRawTransactionsTotalView) DecrementAll ¶
func (view *MockAccountRawTransactionsTotalView) DecrementAll(identities []string, total int64) error
func (*MockAccountRawTransactionsTotalView) FindBy ¶
func (view *MockAccountRawTransactionsTotalView) FindBy(identity string) (int64, error)
func (*MockAccountRawTransactionsTotalView) Increment ¶
func (view *MockAccountRawTransactionsTotalView) Increment(identity string, total int64) error
func (*MockAccountRawTransactionsTotalView) IncrementAll ¶
func (view *MockAccountRawTransactionsTotalView) IncrementAll(identities []string, total int64) error
type MockAccountRawTransactionsView ¶
type MockAccountRawTransactionsView struct {
testify_mock.Mock
}
func (*MockAccountRawTransactionsView) AccountListByHeight ¶ added in v1.5.7
func (accountRawTransactionsView *MockAccountRawTransactionsView) AccountListByHeight(height int64) ([]string, error)
func (*MockAccountRawTransactionsView) InsertAll ¶
func (accountRawTransactionsView *MockAccountRawTransactionsView) InsertAll( rows []AccountRawTransactionRow, ) error
func (*MockAccountRawTransactionsView) List ¶
func (accountRawTransactionsView *MockAccountRawTransactionsView) List( filter AccountRawTransactionsListFilter, order AccountRawTransactionsListOrder, pagination *pagination_interface.Pagination, ) ([]AccountRawTransactionRow, *pagination_interface.PaginationResult, error)
Click to show internal directories.
Click to hide internal directories.