Documentation ¶
Index ¶
- type AccountMessageRecord
- type AccountMessageRow
- type AccountMessages
- type AccountMessagesListFilter
- type AccountMessagesListOrder
- type AccountMessagesTotal
- type AccountMessagesTotalView
- type AccountMessagesView
- func (accountMessagesView *AccountMessagesView) Insert(messageRow *AccountMessageRow, accounts []string) error
- func (accountMessagesView *AccountMessagesView) List(filter AccountMessagesListFilter, order AccountMessagesListOrder, ...) ([]AccountMessageRow, *pagination_interface.PaginationResult, error)
- type MockAccountMessagesTotalView
- func (view *MockAccountMessagesTotalView) DecrementAll(identities []string, total int64) error
- func (view *MockAccountMessagesTotalView) FindBy(identity string) (int64, error)
- func (view *MockAccountMessagesTotalView) Increment(identity string, total int64) error
- func (view *MockAccountMessagesTotalView) IncrementAll(identities []string, total int64) error
- func (view *MockAccountMessagesTotalView) Set(identity string, total int64) error
- func (view *MockAccountMessagesTotalView) SumBy(identities []string) (int64, error)
- type MockAccountMessagesView
- func (accountMessagesView *MockAccountMessagesView) Insert(messageRow *AccountMessageRow, accounts []string) error
- func (accountMessagesView *MockAccountMessagesView) List(filter AccountMessagesListFilter, order AccountMessagesListOrder, ...) ([]AccountMessageRow, *pagination_interface.PaginationResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountMessageRecord ¶
type AccountMessageRecord struct { Row AccountMessageRow Accounts []string }
type AccountMessageRow ¶
type AccountMessageRow struct { MaybeAccount *string `json:"account,omitempty"` BlockHeight int64 `json:"blockHeight"` BlockHash string `json:"blockHash"` BlockTime utctime.UTCTime `json:"blockTime"` TransactionHash string `json:"transactionHash"` Success bool `json:"success"` MessageIndex int `json:"messageIndex"` MessageType string `json:"messageType"` Data interface{} `json:"data"` }
type AccountMessages ¶
type AccountMessages interface { Insert(*AccountMessageRow, []string) error List(AccountMessagesListFilter, AccountMessagesListOrder, *pagination_interface.Pagination) ([]AccountMessageRow, *pagination_interface.PaginationResult, error) }
func NewAccountMessagesView ¶
func NewAccountMessagesView(handle *rdb.Handle) AccountMessages
func NewMockAccountMessagesView ¶
func NewMockAccountMessagesView(_ *rdb.Handle) AccountMessages
type AccountMessagesTotal ¶
type AccountMessagesTotal 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 NewAccountMessagesTotalView ¶
func NewAccountMessagesTotalView(rdbHandle *rdb.Handle) AccountMessagesTotal
func NewMockAccountMessagesTotalView ¶
func NewMockAccountMessagesTotalView(_ *rdb.Handle) AccountMessagesTotal
type AccountMessagesView ¶
type AccountMessagesView struct {
// contains filtered or unexported fields
}
BlockTransactions projection view implemented by relational database
func (*AccountMessagesView) Insert ¶
func (accountMessagesView *AccountMessagesView) Insert(messageRow *AccountMessageRow, accounts []string) error
func (*AccountMessagesView) List ¶
func (accountMessagesView *AccountMessagesView) List( filter AccountMessagesListFilter, order AccountMessagesListOrder, pagination *pagination_interface.Pagination, ) ([]AccountMessageRow, *pagination_interface.PaginationResult, error)
type MockAccountMessagesTotalView ¶
func (*MockAccountMessagesTotalView) DecrementAll ¶
func (view *MockAccountMessagesTotalView) DecrementAll(identities []string, total int64) error
func (*MockAccountMessagesTotalView) FindBy ¶
func (view *MockAccountMessagesTotalView) FindBy(identity string) (int64, error)
func (*MockAccountMessagesTotalView) Increment ¶
func (view *MockAccountMessagesTotalView) Increment(identity string, total int64) error
func (*MockAccountMessagesTotalView) IncrementAll ¶
func (view *MockAccountMessagesTotalView) IncrementAll(identities []string, total int64) error
type MockAccountMessagesView ¶
func (*MockAccountMessagesView) Insert ¶
func (accountMessagesView *MockAccountMessagesView) Insert(messageRow *AccountMessageRow, accounts []string) error
func (*MockAccountMessagesView) List ¶
func (accountMessagesView *MockAccountMessagesView) List( filter AccountMessagesListFilter, order AccountMessagesListOrder, pagination *pagination_interface.Pagination, ) ([]AccountMessageRow, *pagination_interface.PaginationResult, error)
Click to show internal directories.
Click to hide internal directories.