view

package
v1.3.11 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 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 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 AccountMessagesListFilter

type AccountMessagesListFilter struct {
	// Required account filter
	Account string

	// Optional filtering
	MaybeMsgTypes []string
}

type AccountMessagesListOrder

type AccountMessagesListOrder struct {
	Id view.ORDER
}

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 AccountMessagesTotalView

type AccountMessagesTotalView struct {
	*view.Total
}

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

type MockAccountMessagesTotalView

type MockAccountMessagesTotalView struct {
	mock.Mock
}

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

func (*MockAccountMessagesTotalView) Set

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

func (*MockAccountMessagesTotalView) SumBy

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

type MockAccountMessagesView

type MockAccountMessagesView struct {
	mock.Mock
}

func (*MockAccountMessagesView) Insert

func (accountMessagesView *MockAccountMessagesView) Insert(messageRow *AccountMessageRow, accounts []string) error

func (*MockAccountMessagesView) List

Jump to

Keyboard shortcuts

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