marketdatajob

package
v2.0.0-alpha.13 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalMarketDataJobsCount

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

func InsertMarketDataJob

func InsertMarketDataJob(dbConnPgx utils.PgxIface, marketDataJob *MarketDataJob) (int, int, error)

func InsertMarketDataJobList

func InsertMarketDataJobList(dbConnPgx utils.PgxIface, marketDataJobList []MarketDataJob) error

func RemoveMarketDataJob

func RemoveMarketDataJob(dbConnPgx utils.PgxIface, marketDataID, jobID *int) error

func UpdateMarketDataJob

func UpdateMarketDataJob(dbConnPgx utils.PgxIface, marketDataJob *MarketDataJob) 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 MarketDataJob

type MarketDataJob struct {
	MarketDataID     *int      `json:"marketDataId" db:"market_data_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 GetMarketDataJob

func GetMarketDataJob(dbConnPgx utils.PgxIface, marketDataID, jobID *int) (*MarketDataJob, error)

func GetMarketDataJobByMarketDataID

func GetMarketDataJobByMarketDataID(dbConnPgx utils.PgxIface, marketDataID *int) (*MarketDataJob, error)

func GetMarketDataJobList

func GetMarketDataJobList(dbConnPgx utils.PgxIface) ([]MarketDataJob, error)

func GetMarketDataJobListByPagination

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

for refinedev

Jump to

Keyboard shortcuts

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