transactionjob

package
v2.0.0-alpha.19 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalTransactionJobsCount

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

func InsertTransactionJob

func InsertTransactionJob(dbConnPgx utils.PgxIface, transactionJob *TransactionJob) (int, int, error)

func InsertTransactionJobs

func InsertTransactionJobs(dbConnPgx utils.PgxIface, transactionJobs []TransactionJob) error

func RemoveTransactionJob

func RemoveTransactionJob(dbConnPgx utils.PgxIface, transactionID, jobID *int) error

func RemoveTransactionJobByUUID

func RemoveTransactionJobByUUID(dbConnPgx utils.PgxIface, transactionJobUUID string) error

func UpdateTransactionJob

func UpdateTransactionJob(dbConnPgx utils.PgxIface, transactionJob *TransactionJob) error

func UpdateTransactionJobByUUID

func UpdateTransactionJobByUUID(dbConnPgx utils.PgxIface, transactionJob *TransactionJob) 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 TransactionJob

type TransactionJob struct {
	TransactionID    *int      `json:"transactionId" db:"transaction_id"`        //1
	JobID            *int      `json:"jobId" db:"job_id"`                        //2
	UUID             string    `json:"uuid" db:"uuid"`                           //3
	Name             string    `json:"name" db:"name"`                           //4
	AlternateName    string    `json:"alternateName" db:"alternate_name"`        //5
	StartDate        time.Time `json:"startDate" db:"start_date"`                //6
	EndDate          time.Time `json:"endDate" db:"end_date"`                    //7
	Description      string    `json:"description" db:"description"`             //8
	StatusID         *int      `json:"statusId" db:"status_id"`                  //9
	ResponseStatus   string    `json:"responseStatus" db:"response_status"`      //10
	RequestUrl       string    `json:"requestUrl" db:"request_url"`              //11
	RequestBody      string    `json:"requestBody" db:"request_body"`            //12
	RequestMethod    string    `json:"requestMethod" db:"request_method"`        //13
	ResponseData     string    `json:"responseData" db:"response_data"`          //14
	ResponseDataJson Attrs     `json:"responseDataJson" db:"response_data_json"` //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
}

Asset

func GetTransactionJob

func GetTransactionJob(dbConnPgx utils.PgxIface, transactionID, jobID *int) (*TransactionJob, error)

func GetTransactionJobByUUID

func GetTransactionJobByUUID(dbConnPgx utils.PgxIface, transactionJobUUID string) (*TransactionJob, error)

func GetTransactionJobList

func GetTransactionJobList(dbConnPgx utils.PgxIface) ([]TransactionJob, error)

func GetTransactionJobListByPagination

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

for refinedev

func GetTransactionJobsByUUIDs

func GetTransactionJobsByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]TransactionJob, error)

Jump to

Keyboard shortcuts

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