Documentation ¶
Index ¶
- func GetDistinctAddressesFromGethTransactionsByMinerIDAndBeforeDate(dbConnPgx utils.PgxIface, minerID *int, beforeDate *time.Time) ([]string, error)
- func GetMinAndMaxDatesFromTransactionsByMinerID(dbConnPgx utils.PgxIface, minerID *int) (*time.Time, *time.Time, error)
- func GetTotalGethMinersCount(dbConnPgx utils.PgxIface) (*int, error)
- func GetTotalMinerTransactionCount(dbConnPgx utils.PgxIface) (*int, error)
- func GetTotalMinerTransactionInputCount(dbConnPgx utils.PgxIface) (*int, error)
- func InsertGethMiner(dbConnPgx utils.PgxIface, gethMiner *GethMiner) (int, string, error)
- func InsertGethMinerTransaction(dbConnPgx utils.PgxIface, minerTransactionInput *GethMinerTransaction) (int, int, error)
- func InsertGethMinerTransactionInput(dbConnPgx utils.PgxIface, minerTransactionInput *GethMinerTransactionInput) (int, int, error)
- func InsertGethMiners(dbConnPgx utils.PgxIface, gethMiners []GethMiner) error
- func InsertGethMinersTransactionInputs(dbConnPgx utils.PgxIface, ...) error
- func InsertGethMinersTransactions(dbConnPgx utils.PgxIface, gethMinersTransaction []GethMinerTransaction) error
- func RemoveAllTransactionsAndTransactionInputs(dbConnPgx utils.PgxIface) error
- func RemoveGethMiner(dbConnPgx utils.PgxIface, gethMinerID *int) error
- func RemoveGethMinerTransaction(dbConnPgx utils.PgxIface, minerID, transactionID *int) error
- func RemoveGethMinerTransactionInput(dbConnPgx utils.PgxIface, minerID, transactionInputID *int) error
- func UpdateGethMiner(dbConnPgx utils.PgxIface, gethMiner *GethMiner) error
- func UpdateGethMinerAddresses(dbConnPgx utils.PgxIface, gethMinerID *int) error
- func UpdateGethMinerTransaction(dbConnPgx utils.PgxIface, minerTransactionInput *GethMinerTransaction) error
- func UpdateGethMinerTransactionInput(dbConnPgx utils.PgxIface, minerTransactionInput *GethMinerTransactionInput) error
- type GethMiner
- func GetGethMiner(dbConnPgx utils.PgxIface, gethMinerID *int) (*GethMiner, error)
- func GetGethMinerList(dbConnPgx utils.PgxIface) ([]GethMiner, error)
- func GetGethMinerListByMiningAssetId(dbConnPgx utils.PgxIface, miningAssetID *int) ([]GethMiner, error)
- func GetGethMinerListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]GethMiner, error)
- type GethMinerTransaction
- func GetAllGethMinerTransactionsByMinerID(dbConnPgx utils.PgxIface, minerID *int) ([]GethMinerTransaction, error)
- func GetAllGethMinerTransactionsByTransactionID(dbConnPgx utils.PgxIface, transactionID *int) ([]GethMinerTransaction, error)
- func GetGethMinerTransaction(dbConnPgx utils.PgxIface, minerID, transactionID *int) (*GethMinerTransaction, error)
- func GetGethMinerTransactionList(dbConnPgx utils.PgxIface, minerIDs, transactionIDs []int) ([]GethMinerTransaction, error)
- func GetMinerTransactionListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]GethMinerTransaction, error)
- type GethMinerTransactionInput
- func GetAllGethMinerTransactionInputsByMinerID(dbConnPgx utils.PgxIface, minerID *int) ([]GethMinerTransactionInput, error)
- func GetAllGethMinerTransactionInputsByTransactionInputID(dbConnPgx utils.PgxIface, transactionInputID *int) ([]GethMinerTransactionInput, error)
- func GetGethMinerTransactionInput(dbConnPgx utils.PgxIface, minerID, transactionInputID *int) (*GethMinerTransactionInput, error)
- func GetGethMinerTransactionInputList(dbConnPgx utils.PgxIface, minerIDs, transactionInputIDs []int) ([]GethMinerTransactionInput, error)
- func GetMinerTransactionInputListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]GethMinerTransactionInput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertGethMiner ¶
func InsertGethMiners ¶
func InsertGethMinersTransactionInputs ¶
func InsertGethMinersTransactionInputs(dbConnPgx utils.PgxIface, gethMinersTransactionInputs []GethMinerTransactionInput) error
func InsertGethMinersTransactions ¶
func InsertGethMinersTransactions(dbConnPgx utils.PgxIface, gethMinersTransaction []GethMinerTransaction) error
func UpdateGethMinerTransaction ¶
func UpdateGethMinerTransaction(dbConnPgx utils.PgxIface, minerTransactionInput *GethMinerTransaction) error
func UpdateGethMinerTransactionInput ¶
func UpdateGethMinerTransactionInput(dbConnPgx utils.PgxIface, minerTransactionInput *GethMinerTransactionInput) error
Types ¶
type GethMiner ¶
type GethMiner struct { ID *int `json:"id" db:"id"` //1 UUID string `json:"uuid" db:"uuid"` //2 Name string `json:"name" db:"name"` //3 AlternateName string `json:"alternateName" db:"alternate_name"` //4 ChainID *int `json:"chainId" db:"chain_id"` //5 ExchangeID *int `json:"exchangeId" db:"exchange_id"` //6 StartingBlockNumber *int `json:"startingBlockNumber" db:"starting_block_number"` //7 CreatedTxnHash string `json:"createdTxnHash" db:"created_txn_hash"` //8 LastBlockNumber *uint64 `json:"lastBlockNumber" db:"last_block_number"` //9 ContractAddress string `json:"contractAddress" db:"contract_address"` //10 ContractAddressID *int `json:"contractAddressId" db:"contract_address_id"` //11 DeveloperAddress string `json:"developerAddress" db:"developer_address"` //12 DeveloperAddressID *int `json:"developerAddressId" db:"developer_address_id"` //13 MiningAssetID *int `json:"miningAssetId" db:"mining_asset_id"` //14 Description string `json:"description" db:"description"` //15 CreatedBy string `json:"createdBy" db:"created_by"` //16 CreatedAt time.Time `json:"createdAt" db:"created_at"` //17 UpdatedBy string `json:"updatedBy" db:"updated_by"` //18 UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` //19 }
func GetGethMiner ¶
type GethMinerTransaction ¶
type GethMinerTransaction struct { MinerID *int `json:"minerId" db:"miner_id"` //1 TransactionID *int `json:"transactionId" db:"transaction_id"` //2 UUID string `json:"uuid" db:"uuid"` //3 Name string `json:"name" db:"name"` //4 AlternateName string `json:"alternateName" db:"alternate_name"` //5 Description string `json:"description" db:"description"` //6 CreatedBy string `json:"createdBy" db:"created_by"` //7 CreatedAt time.Time `json:"createdAt" db:"created_at"` //8 UpdatedBy string `json:"updatedBy" db:"updated_by"` //9 UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` //10 }
func GetAllGethMinerTransactionsByMinerID ¶
func GetAllGethMinerTransactionsByMinerID(dbConnPgx utils.PgxIface, minerID *int) ([]GethMinerTransaction, error)
func GetAllGethMinerTransactionsByTransactionID ¶
func GetAllGethMinerTransactionsByTransactionID(dbConnPgx utils.PgxIface, transactionID *int) ([]GethMinerTransaction, error)
func GetGethMinerTransaction ¶
func GetGethMinerTransaction(dbConnPgx utils.PgxIface, minerID, transactionID *int) (*GethMinerTransaction, error)
func GetGethMinerTransactionList ¶
func GetGethMinerTransactionList(dbConnPgx utils.PgxIface, minerIDs, transactionIDs []int) ([]GethMinerTransaction, error)
func GetMinerTransactionListByPagination ¶
func GetMinerTransactionListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]GethMinerTransaction, error)
for refinedev
type GethMinerTransactionInput ¶
type GethMinerTransactionInput struct { MinerID *int `json:"minerId" db:"miner_id"` //1 TransactionInputID *int `json:"transactionInputId" db:"transaction_input_id"` //2 UUID string `json:"uuid" db:"uuid"` //3 Name string `json:"name" db:"name"` //4 AlternateName string `json:"alternateName" db:"alternate_name"` //5 Description string `json:"description" db:"description"` //6 CreatedBy string `json:"createdBy" db:"created_by"` //7 CreatedAt time.Time `json:"createdAt" db:"created_at"` //8 UpdatedBy string `json:"updatedBy" db:"updated_by"` //9 UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` //10 }
func GetAllGethMinerTransactionInputsByMinerID ¶
func GetAllGethMinerTransactionInputsByMinerID(dbConnPgx utils.PgxIface, minerID *int) ([]GethMinerTransactionInput, error)
func GetAllGethMinerTransactionInputsByTransactionInputID ¶
func GetAllGethMinerTransactionInputsByTransactionInputID(dbConnPgx utils.PgxIface, transactionInputID *int) ([]GethMinerTransactionInput, error)
func GetGethMinerTransactionInput ¶
func GetGethMinerTransactionInput(dbConnPgx utils.PgxIface, minerID, transactionInputID *int) (*GethMinerTransactionInput, error)
func GetGethMinerTransactionInputList ¶
func GetGethMinerTransactionInputList(dbConnPgx utils.PgxIface, minerIDs, transactionInputIDs []int) ([]GethMinerTransactionInput, error)
func GetMinerTransactionInputListByPagination ¶
func GetMinerTransactionInputListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]GethMinerTransactionInput, error)
for refinedev
Click to show internal directories.
Click to hide internal directories.