dexjob

package
v2.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalDexTxnJobCount

func GetTotalDexTxnJobCount(dbConnPgx utils.PgxIface) (*int, error)

func InsertDexTxnJob

func InsertDexTxnJob(dbConnPgx utils.PgxIface, dexTxnJob *DexTxnJob) (int, error)

func InsertDexTxnJobList

func InsertDexTxnJobList(dbConnPgx utils.PgxIface, dexTxnJobList []DexTxnJob) error

func RemoveDexTxnJob

func RemoveDexTxnJob(dbConnPgx utils.PgxIface, dexTxnID *int) error

func UpdateDexTxnJob

func UpdateDexTxnJob(dbConnPgx utils.PgxIface, dexTxnJob *DexTxnJob) error

Types

type Attrs

type Attrs map[string]interface{}

func (*Attrs) Scan

func (a *Attrs) Scan(value interface{}) error

func (Attrs) Value

func (a Attrs) Value() (driver.Value, error)

type DexTxnJob

type DexTxnJob struct {
	ID                *int      `json:"id" db:"id"`
	JobID             *int      `json:"jobId" db:"job_id"`
	UUID              string    `json:"uuid" db:"uuid"`
	Name              string    `json:"name" db:"name" db:"name"`
	AlternateName     string    `json:"alternateName" db:"alternate_name"`
	StartDate         time.Time `json:"startDate" db:"start_date"`
	EndDate           time.Time `json:"endDate" db:"end_date"`
	Description       string    `json:"description" db:"description"`
	StatusID          *int      `json:"statusId" db:"status_id"`
	ChainID           *int      `json:"chainId" db:"chain_id"`
	ExchangeID        *int      `json:"exchangeId" db:"exchange_id"`
	TransactionHashes []string  `json:"trasnactionHashes" db:"transaction_hashes"`
	CreatedBy         string    `json:"createdBy" db:"created_by"`
	CreatedAt         time.Time `json:"createdAt" db:"created_at"`
	UpdatedBy         string    `json:"updatedBy" db:"updated_by"`
	UpdatedAt         time.Time `json:"updatedAt" db:"updated_at"`
}

Asset

func GetDexTxnJob

func GetDexTxnJob(dbConnPgx utils.PgxIface, dexTxnID *int) (*DexTxnJob, error)

func GetDexTxnJobByJobId

func GetDexTxnJobByJobId(dbConnPgx utils.PgxIface, jobID *int) ([]DexTxnJob, error)

func GetDexTxnJobList

func GetDexTxnJobList(dbConnPgx utils.PgxIface) ([]DexTxnJob, error)

func GetDexTxnJobListByPagination

func GetDexTxnJobListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]DexTxnJob, error)

Jump to

Keyboard shortcuts

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