models

package
v0.0.0-...-b21a685 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transaction

type Transaction struct {
	ID               primitive.ObjectID `json:"id" bson:"_id,omitempty"`
	TransactionID    int64              `json:"transactionID" bson:"transactionID"`
	SenderAddress    string             `json:"senderAddress" bson:"senderAddress"`
	RecipientAddress string             `json:"recipientAddress" bson:"recipientAddress"`
	BlockNum         int64              `json:"blockNum" bson:"blockNum"`
	ConfirmNum       int64              `json:"confirmNum" bson:"confirmNum"`
	TrxDate          string             `json:"trxDate" bson:"trxDate"`
	Amount           float64            `json:"amount" bson:"amount"`
	Commission       float64            `json:"commission" bson:"commission"`
}

func (*Transaction) Validation

func (t *Transaction) Validation() error

Jump to

Keyboard shortcuts

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