Documentation ¶
Index ¶
Constants ¶
View Source
const BlockTableName = "blocks"
View Source
const TransactionTableName = "transactions"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
type Block struct { BlockHash string `pg:"blockHash,pk" json:"blockHash"` Network string `pg:"network" json:"network"` BlockNumber uint64 `pg:"blockNumber" json:"blockNumber"` PrevioudBlockHash string `pg:"preBlockHash" json:"preBlockHash"` DataHash string `pg:"dataHash" json:"dataHash"` CreatedAt int64 `pg:"createdAt" json:"createdAt"` BlockSize int `pg:"blockSize" json:"blockSize"` TxCount int `pg:"txCount" json:"txCount"` }
func (*Block) AfterQuery ¶
type Transaction ¶
type Transaction struct { ID string `pg:"id,pk" json:"id"` Network string `pg:"network" json:"network"` BlockNumber uint64 `pg:"blockNumber" json:"blockNumber"` CreatedAt int64 `pg:"createdAt" json:"createdAt"` Creator string `pg:"creator" json:"creator"` Type TxType `pg:"type" json:"type"` Payload []byte `pg:"payload" json:"payload"` // EndorserTransaction ChaincodeID string `pg:"chaincodeId" json:"chaincodeId"` Method string `pg:"method" json:"method"` Args []string `pg:"args" json:"args"` ValidationCode int32 `pg:"validationCode" json:"validationCode"` }
func (*Transaction) AfterQuery ¶
func (*Transaction) AfterQuery(ctx context.Context, event *pg.QueryEvent) error
func (*Transaction) BeforeQuery ¶
Click to show internal directories.
Click to hide internal directories.