strategyjob

package
v1.3.57 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertStrategyJob

func InsertStrategyJob(strategyJob StrategyJob) (int, int, error)

func InsertStrategyJobList

func InsertStrategyJobList(strategyJobList []StrategyJob) error

func RemoveStrategyJob

func RemoveStrategyJob(strategyID int, jobID int) error

func UpdateStrategyJob

func UpdateStrategyJob(strategyJob StrategyJob) 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 StrategyJob

type StrategyJob struct {
	StrategyID       *int      `json:"strategyId"`
	JobID            *int      `json:"jobId"`
	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"`
	StatusID         *int      `json:"statusId"`
	ResponseStatus   string    `json:"responseStatus"`
	RequestUrl       string    `json:"requestUrl"`
	RequestBody      string    `json:"requestBody"`
	RequestMethod    string    `json:"requestMethod"`
	ResponseData     string    `json:"responseData"`
	ResponseDataJson Attrs     `json:"responseDataJson"`
	CreatedBy        string    `json:"createdBy"`
	CreatedAt        time.Time `json:"createdAt"`
	UpdatedBy        string    `json:"updatedBy"`
	UpdatedAt        time.Time `json:"updatedAt"`
}

Asset

func GetStrategyJob

func GetStrategyJob(strategyID int, jobID int) (*StrategyJob, error)

func GetStrategyJobByStrategyID

func GetStrategyJobByStrategyID(strategyID int) (*StrategyJob, error)

func GetStrategyJobList

func GetStrategyJobList() ([]StrategyJob, error)

func GetTopTenStrategyJobs

func GetTopTenStrategyJobs() ([]StrategyJob, error)

Jump to

Keyboard shortcuts

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