Documentation ¶
Index ¶
- type AccountRawEventRow
- type AccountRawEventRowData
- type AccountRawEvents
- type AccountRawEventsListFilter
- type AccountRawEventsListOrder
- type AccountRawEventsTotal
- type AccountRawEventsTotalView
- type AccountRawEventsView
- func (eventsView *AccountRawEventsView) AccountListByHeight(height int64) ([]string, error)
- func (eventsView *AccountRawEventsView) FindById(id int64) (*AccountRawEventRow, error)
- func (eventsView *AccountRawEventsView) Insert(accountRawEvent *AccountRawEventRow) error
- func (eventsView *AccountRawEventsView) InsertAll(accountRawEvents []AccountRawEventRow) error
- func (eventsView *AccountRawEventsView) List(filter AccountRawEventsListFilter, order AccountRawEventsListOrder, ...) ([]AccountRawEventRow, *pagination_interface.PaginationResult, error)
- type MockAccountRawEventsTotalView
- func (view *MockAccountRawEventsTotalView) DecrementAll(identities []string, total int64) error
- func (view *MockAccountRawEventsTotalView) FindBy(identity string) (int64, error)
- func (view *MockAccountRawEventsTotalView) Increment(identity string, total int64) error
- func (view *MockAccountRawEventsTotalView) IncrementAll(identities []string, total int64) error
- func (view *MockAccountRawEventsTotalView) Set(identity string, total int64) error
- func (view *MockAccountRawEventsTotalView) SumBy(identities []string) (int64, error)
- type MockAccountRawEventsView
- func (accountMessagesView *MockAccountRawEventsView) AccountListByHeight(height int64) ([]string, error)
- func (accountRawEventsView *MockAccountRawEventsView) Insert(messageRow *AccountRawEventRow) error
- func (accountRawEventsView *MockAccountRawEventsView) InsertAll(messageRows []AccountRawEventRow) error
- func (accountMessagesView *MockAccountRawEventsView) List(filter AccountRawEventsListFilter, order AccountRawEventsListOrder, ...) ([]AccountRawEventRow, *pagination_interface.PaginationResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountRawEventRow ¶
type AccountRawEventRowData ¶
type AccountRawEventRowData struct { Type string `json:"type"` Content interface{} `json:"content"` }
type AccountRawEvents ¶
type AccountRawEvents interface { Insert(*AccountRawEventRow) error InsertAll([]AccountRawEventRow) error List(AccountRawEventsListFilter, AccountRawEventsListOrder, *pagination_interface.Pagination) ([]AccountRawEventRow, *pagination_interface.PaginationResult, error) AccountListByHeight(int64) ([]string, error) }
func NewAccountRawEventsView ¶
func NewAccountRawEventsView(handle *rdb.Handle) AccountRawEvents
func NewMockAccountRawEventsView ¶ added in v1.6.2
func NewMockAccountRawEventsView(_ *rdb.Handle) AccountRawEvents
type AccountRawEventsTotal ¶
type AccountRawEventsTotal 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 NewAccountRawEventsTotalView ¶
func NewAccountRawEventsTotalView(rdbHandle *rdb.Handle) AccountRawEventsTotal
func NewMockAccountRawEventsTotalView ¶
func NewMockAccountRawEventsTotalView(_ *rdb.Handle) AccountRawEventsTotal
type AccountRawEventsView ¶
type AccountRawEventsView struct {
// contains filtered or unexported fields
}
AccountRawEventsView projection view implemented by relational database
func (*AccountRawEventsView) AccountListByHeight ¶ added in v1.5.7
func (eventsView *AccountRawEventsView) AccountListByHeight(height int64) ([]string, error)
func (*AccountRawEventsView) FindById ¶
func (eventsView *AccountRawEventsView) FindById(id int64) (*AccountRawEventRow, error)
func (*AccountRawEventsView) Insert ¶
func (eventsView *AccountRawEventsView) Insert(accountRawEvent *AccountRawEventRow) error
func (*AccountRawEventsView) InsertAll ¶
func (eventsView *AccountRawEventsView) InsertAll(accountRawEvents []AccountRawEventRow) error
func (*AccountRawEventsView) List ¶
func (eventsView *AccountRawEventsView) List( filter AccountRawEventsListFilter, order AccountRawEventsListOrder, pagination *pagination_interface.Pagination, ) ([]AccountRawEventRow, *pagination_interface.PaginationResult, error)
type MockAccountRawEventsTotalView ¶
func (*MockAccountRawEventsTotalView) DecrementAll ¶
func (view *MockAccountRawEventsTotalView) DecrementAll(identities []string, total int64) error
func (*MockAccountRawEventsTotalView) FindBy ¶
func (view *MockAccountRawEventsTotalView) FindBy(identity string) (int64, error)
func (*MockAccountRawEventsTotalView) Increment ¶
func (view *MockAccountRawEventsTotalView) Increment(identity string, total int64) error
func (*MockAccountRawEventsTotalView) IncrementAll ¶
func (view *MockAccountRawEventsTotalView) IncrementAll(identities []string, total int64) error
type MockAccountRawEventsView ¶
func (*MockAccountRawEventsView) AccountListByHeight ¶ added in v1.5.7
func (accountMessagesView *MockAccountRawEventsView) AccountListByHeight( height int64, ) ([]string, error)
func (*MockAccountRawEventsView) Insert ¶
func (accountRawEventsView *MockAccountRawEventsView) Insert(messageRow *AccountRawEventRow) error
func (*MockAccountRawEventsView) InsertAll ¶
func (accountRawEventsView *MockAccountRawEventsView) InsertAll(messageRows []AccountRawEventRow) error
func (*MockAccountRawEventsView) List ¶
func (accountMessagesView *MockAccountRawEventsView) List( filter AccountRawEventsListFilter, order AccountRawEventsListOrder, pagination *pagination_interface.Pagination, ) ([]AccountRawEventRow, *pagination_interface.PaginationResult, error)
Click to show internal directories.
Click to hide internal directories.