view

package
v1.3.24 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockEventRow

type BlockEventRow struct {
	MaybeId     *int64            `json:"id"`
	BlockHeight int64             `json:"blockHeight"`
	BlockHash   string            `json:"blockHash"`
	BlockTime   utctime.UTCTime   `json:"blockTime"`
	Data        BlockEventRowData `json:"data"`
}

type BlockEventRowData

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

type BlockEvents

type BlockEvents struct {
	// contains filtered or unexported fields
}

BlockEvents projection view implemented by relational database

func NewBlockEvents

func NewBlockEvents(handle *rdb.Handle) *BlockEvents

func (*BlockEvents) FindById

func (eventsView *BlockEvents) FindById(id int64) (*BlockEventRow, error)

func (*BlockEvents) Insert

func (eventsView *BlockEvents) Insert(blockEvent *BlockEventRow) error

func (*BlockEvents) InsertAll

func (eventsView *BlockEvents) InsertAll(blockEvents []BlockEventRow) error

type BlockEventsListFilter

type BlockEventsListFilter struct {
	MaybeBlockHeight *int64
}

type BlockEventsListOrder

type BlockEventsListOrder struct {
	Height view.ORDER
}

type BlockEventsTotal

type BlockEventsTotal struct {
	*view.Total
}

func NewBlockEventsTotal

func NewBlockEventsTotal(rdbHandle *rdb.Handle) *BlockEventsTotal

Jump to

Keyboard shortcuts

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