Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract struct { gorm.Model Id string ContractId *ContractID GasUsed uint64 TransactionId string Timestamp time.Time ChargeFee string PayerAccount string Status string CreatedAt time.Time UpdatedAt time.Time }
contract model
type ContractID ¶
type ContractID hedera.ContractID
init hedera contract id
func (*ContractID) Scan ¶
func (c *ContractID) Scan(value interface{}) error
method to unmarshal the contract id data the contract id from hedera is in pointer, we need to unmarshal it to a usable form
type Products ¶
type Products struct { gorm.Model ProductID string Color string Quantity int64 Timestamp time.Time ContractId *ContractID ContractIdString string GasUsed uint64 TransactionId string ChargeFee string PayerAccount string Status string ReceiptPDF string CreatedAt time.Time }
declare the database table and the record the table should always contain
Click to show internal directories.
Click to hide internal directories.