Documentation ¶
Index ¶
- type BlockRawTransactions
- type BlockRawTransactionsView
- func (transactionsView *BlockRawTransactionsView) Count() (int64, error)
- func (transactionsView *BlockRawTransactionsView) FindByHash(txHash string) (*RawTransactionRow, error)
- func (transactionsView *BlockRawTransactionsView) Insert(transaction *RawTransactionRow) error
- func (transactionsView *BlockRawTransactionsView) InsertAll(transactions []RawTransactionRow) error
- func (transactionsView *BlockRawTransactionsView) List(filter RawTransactionsListFilter, order RawTransactionsListOrder, ...) ([]RawTransactionRow, *pagination_interface.PaginationResult, error)
- type MockRawTransactionsTotalView
- func (view *MockRawTransactionsTotalView) DecrementAll(identities []string, total int64) error
- func (view *MockRawTransactionsTotalView) FindBy(identity string) (int64, error)
- func (view *MockRawTransactionsTotalView) Increment(identity string, total int64) error
- func (view *MockRawTransactionsTotalView) IncrementAll(identities []string, total int64) error
- func (view *MockRawTransactionsTotalView) Set(identity string, total int64) error
- func (view *MockRawTransactionsTotalView) SumBy(identities []string) (int64, error)
- type MockRawTransactionsView
- func (transactionsView *MockRawTransactionsView) Count() (int64, error)
- func (transactionsView *MockRawTransactionsView) FindByHash(txHash string) (*RawTransactionRow, error)
- func (transactionsView *MockRawTransactionsView) Insert(row *RawTransactionRow) error
- func (transactionsView *MockRawTransactionsView) InsertAll(transactions []RawTransactionRow) error
- func (transactionsView *MockRawTransactionsView) List(filter RawTransactionsListFilter, order RawTransactionsListOrder, ...) ([]RawTransactionRow, *pagination_interface.PaginationResult, error)
- type RawTransactionRow
- type RawTransactionRowSigner
- type RawTransactionRowSignerKeyInfo
- type RawTransactionsListFilter
- type RawTransactionsListOrder
- type RawTransactionsTotal
- type RawTransactionsTotalView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockRawTransactions ¶
type BlockRawTransactions interface { InsertAll(transactions []RawTransactionRow) error Insert(transaction *RawTransactionRow) error FindByHash(txHash string) (*RawTransactionRow, error) List( filter RawTransactionsListFilter, order RawTransactionsListOrder, pagination *pagination_interface.Pagination, ) ([]RawTransactionRow, *pagination_interface.PaginationResult, error) Count() (int64, error) }
func NewMockRawTransactionsView ¶
func NewMockRawTransactionsView(_ *rdb.Handle) BlockRawTransactions
func NewRawTransactionsView ¶
func NewRawTransactionsView(handle *rdb.Handle) BlockRawTransactions
type BlockRawTransactionsView ¶
type BlockRawTransactionsView struct {
// contains filtered or unexported fields
}
BlockRawTransactions projection view implemented by relational database
func (*BlockRawTransactionsView) Count ¶
func (transactionsView *BlockRawTransactionsView) Count() (int64, error)
func (*BlockRawTransactionsView) FindByHash ¶
func (transactionsView *BlockRawTransactionsView) FindByHash(txHash string) (*RawTransactionRow, error)
func (*BlockRawTransactionsView) Insert ¶
func (transactionsView *BlockRawTransactionsView) Insert(transaction *RawTransactionRow) error
func (*BlockRawTransactionsView) InsertAll ¶
func (transactionsView *BlockRawTransactionsView) InsertAll(transactions []RawTransactionRow) error
func (*BlockRawTransactionsView) List ¶
func (transactionsView *BlockRawTransactionsView) List( filter RawTransactionsListFilter, order RawTransactionsListOrder, pagination *pagination_interface.Pagination, ) ([]RawTransactionRow, *pagination_interface.PaginationResult, error)
type MockRawTransactionsTotalView ¶
func (*MockRawTransactionsTotalView) DecrementAll ¶
func (view *MockRawTransactionsTotalView) DecrementAll(identities []string, total int64) error
func (*MockRawTransactionsTotalView) FindBy ¶
func (view *MockRawTransactionsTotalView) FindBy(identity string) (int64, error)
func (*MockRawTransactionsTotalView) Increment ¶
func (view *MockRawTransactionsTotalView) Increment(identity string, total int64) error
func (*MockRawTransactionsTotalView) IncrementAll ¶
func (view *MockRawTransactionsTotalView) IncrementAll(identities []string, total int64) error
type MockRawTransactionsView ¶
type MockRawTransactionsView struct {
testify_mock.Mock
}
func (*MockRawTransactionsView) Count ¶
func (transactionsView *MockRawTransactionsView) Count() (int64, error)
func (*MockRawTransactionsView) FindByHash ¶
func (transactionsView *MockRawTransactionsView) FindByHash(txHash string) (*RawTransactionRow, error)
func (*MockRawTransactionsView) Insert ¶
func (transactionsView *MockRawTransactionsView) Insert(row *RawTransactionRow) error
func (*MockRawTransactionsView) InsertAll ¶
func (transactionsView *MockRawTransactionsView) InsertAll(transactions []RawTransactionRow) error
func (*MockRawTransactionsView) List ¶
func (transactionsView *MockRawTransactionsView) List( filter RawTransactionsListFilter, order RawTransactionsListOrder, pagination *pagination_interface.Pagination, ) ([]RawTransactionRow, *pagination_interface.PaginationResult, error)
type RawTransactionRow ¶
type RawTransactionRow struct { BlockHeight int64 `json:"blockHeight"` BlockHash string `json:"blockHash"` BlockTime utctime.UTCTime `json:"blockTime"` Hash string `json:"hash"` Index int `json:"index"` 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 []RawTransactionRowSigner `json:"signers"` }
type RawTransactionRowSigner ¶
type RawTransactionRowSigner struct { MaybeKeyInfo *RawTransactionRowSignerKeyInfo `json:"keyInfo"` Address string `json:"address"` AccountSequence uint64 `json:"accountSequence"` }
type RawTransactionsListFilter ¶
type RawTransactionsListFilter struct {
MaybeBlockHeight *int64
}
type RawTransactionsTotal ¶
type RawTransactionsTotal 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 NewMockRawTransactionsTotalView ¶
func NewMockRawTransactionsTotalView(_ *rdb.Handle) RawTransactionsTotal
func NewRawTransactionsTotalView ¶
func NewRawTransactionsTotalView(rdbHandle *rdb.Handle) RawTransactionsTotal
Click to show internal directories.
Click to hide internal directories.