view

package
v1.7.38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountRawEventRow

type AccountRawEventRow struct {
	MaybeId     *int64                   `json:"id"`
	Account     string                   `json:"account"`
	BlockHeight int64                    `json:"blockHeight"`
	BlockHash   string                   `json:"blockHash"`
	BlockTime   utctime.UTCTime          `json:"blockTime"`
	Data        []AccountRawEventRowData `json:"data"`
}

type AccountRawEventRowData

type AccountRawEventRowData struct {
	Type    string      `json:"type"`
	Content interface{} `json:"content"`
}

type AccountRawEvents

func NewAccountRawEventsView

func NewAccountRawEventsView(handle *rdb.Handle) AccountRawEvents

func NewMockAccountRawEventsView added in v1.6.2

func NewMockAccountRawEventsView(_ *rdb.Handle) AccountRawEvents

type AccountRawEventsListFilter

type AccountRawEventsListFilter struct {
	// Required account filter
	Account string

	// Optional filtering
	MaybeMsgTypes []string
}

type AccountRawEventsListOrder

type AccountRawEventsListOrder struct {
	Id view.ORDER
}

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 AccountRawEventsTotalView

type AccountRawEventsTotalView struct {
	*view.Total
}

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

type MockAccountRawEventsTotalView

type MockAccountRawEventsTotalView struct {
	mock.Mock
}

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

func (*MockAccountRawEventsTotalView) Set

func (view *MockAccountRawEventsTotalView) Set(identity string, total int64) error

func (*MockAccountRawEventsTotalView) SumBy

func (view *MockAccountRawEventsTotalView) SumBy(identities []string) (int64, error)

type MockAccountRawEventsView

type MockAccountRawEventsView struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL