Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddressListRow ¶
type AddressListRow struct { Address string Height string Transaction string Application string Action string Time string }
func (*AddressListRow) FromRequest ¶
func (t *AddressListRow) FromRequest(height uint64, tm uint64, req blockchainRequest.Entity)
type AddressListRows ¶
type AddressListRows struct {
simpleSQLDatabase.BasicRows
}
func (*AddressListRows) Table ¶
func (t *AddressListRows) Table() simpleSQLDatabase.ITable
func (*AddressListRows) UpdateAddress ¶
func (t *AddressListRows) UpdateAddress(blk block.Entity, req blockchainRequest.Entity)
type AddressListTable ¶
type AddressListTable struct { Address enum.Element `col:"c_address"` Height enum.Element `col:"c_last_height"` Transaction enum.Element `col:"c_last_transaction"` Application enum.Element `col:"c_last_application"` Action enum.Element `col:"c_last_action"` Time enum.Element `col:"c_time"` simpleSQLDatabase.BasicTable }
var AddressList AddressListTable
func (AddressListTable) Name ¶
func (t AddressListTable) Name() (name string)
func (AddressListTable) NewRows ¶
func (t AddressListTable) NewRows() interface{}
type BlockListRow ¶
type BlockListRow struct { ID string Height string Signer string Hash string Sig string PrevHash string Time string TXRoot string TXCount string Payload string }
func (*BlockListRow) FromBlockEntity ¶
func (b *BlockListRow) FromBlockEntity(blk block.Entity)
type BlockListRows ¶
type BlockListRows struct {
simpleSQLDatabase.BasicRows
}
func (*BlockListRows) InsertBlock ¶
func (b *BlockListRows) InsertBlock(blk block.Entity)
func (*BlockListRows) Table ¶
func (b *BlockListRows) Table() simpleSQLDatabase.ITable
type BlockListTable ¶
type BlockListTable struct { ID enum.Element `col:"c_id" ignoreInsert:"true"` Height enum.Element `col:"c_height"` Signer enum.Element `col:"c_signer"` Hash enum.Element `col:"c_hash"` Sig enum.Element `col:"c_signature"` PrevHash enum.Element `col:"c_prev_hash"` Time enum.Element `col:"c_time"` TXRoot enum.Element `col:"c_tx_root" def:"-"` TXCount enum.Element `col:"c_tx_count" def:"0"` Payload enum.Element `col:"c_payload" def:"{}"` simpleSQLDatabase.BasicTable }
var BlockList BlockListTable
func (BlockListTable) Name ¶
func (b BlockListTable) Name() (name string)
func (BlockListTable) NewRows ¶
func (b BlockListTable) NewRows() interface{}
type RequestRow ¶
type RequestRow struct { ID string Height string Sender string Hash string Sig string Application string Action string Payload string Packed string Result string Time string }
func (*RequestRow) FromRequest ¶
func (t *RequestRow) FromRequest(height uint64, tm uint64, req blockchainRequest.Entity, result applicationResult.Entity)
type RequestRows ¶
type RequestRows struct {
simpleSQLDatabase.BasicRows
}
func (*RequestRows) InsertTransaction ¶
func (t *RequestRows) InsertTransaction(blk block.Entity, req blockchainRequest.Entity, result applicationResult.Entity)
func (*RequestRows) Table ¶
func (t *RequestRows) Table() simpleSQLDatabase.ITable
type RequestsTable ¶
type RequestsTable struct { ID enum.Element `col:"c_id" ignoreInsert:"true"` Height enum.Element `col:"c_height"` Sender enum.Element `col:"c_sender"` Hash enum.Element `col:"c_hash"` Sig enum.Element `col:"c_signature"` Application enum.Element `col:"c_application"` Action enum.Element `col:"c_action"` Payload enum.Element `col:"c_payload"` Packed enum.Element `col:"c_packed"` Result enum.Element `col:"c_result"` Time enum.Element `col:"c_time"` simpleSQLDatabase.BasicTable }
var Requests RequestsTable
func (RequestsTable) Name ¶
func (t RequestsTable) Name() (name string)
func (RequestsTable) NewRows ¶
func (t RequestsTable) NewRows() interface{}
Click to show internal directories.
Click to hide internal directories.