Documentation ¶
Index ¶
- func InsertTransaction(transaction Transaction) (int, error)
- func RemoveTransaction(transactionID int) error
- func UpdateTransaction(transaction Transaction) error
- type Attrs
- type Transaction
- func GetStartAndEndDateDiffTransactions(diffInDate int) ([]Transaction, error)
- func GetTopTenTransactions() ([]Transaction, error)
- func GetTransaction(transactionID int) (*Transaction, error)
- func GetTransactions(ids []int) ([]Transaction, error)
- func GetTransactionsByUUIDs(UUIDList []string) ([]Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertTransaction ¶
func InsertTransaction(transaction Transaction) (int, error)
func RemoveTransaction ¶
func UpdateTransaction ¶
func UpdateTransaction(transaction Transaction) error
Types ¶
type Transaction ¶
type Transaction struct { ID *int `json:"id"` UUID string `json:"uuid"` Name string `json:"name"` AlternateName string `json:"alternateName"` StartDate time.Time `json:"startDate"` EndDate time.Time `json:"endDate"` Description string `json:"description"` TxHash string `json:"txHash"` StatusID *int `json:"statusId"` FromAccountID *int `json:"fromAccountId"` ToAccountID *int `json:"toAccountId"` ChainID *int `json:"chainId"` CreatedBy string `json:"createdBy"` CreatedAt time.Time `json:"createdAt"` UpdatedBy string `json:"updatedBy"` UpdatedAt time.Time `json:"updatedAt"` }
Transaction
func GetStartAndEndDateDiffTransactions ¶
func GetStartAndEndDateDiffTransactions(diffInDate int) ([]Transaction, error)
func GetTopTenTransactions ¶
func GetTopTenTransactions() ([]Transaction, error)
func GetTransaction ¶
func GetTransaction(transactionID int) (*Transaction, error)
func GetTransactions ¶
func GetTransactions(ids []int) ([]Transaction, error)
func GetTransactionsByUUIDs ¶
func GetTransactionsByUUIDs(UUIDList []string) ([]Transaction, error)
Click to show internal directories.
Click to hide internal directories.