job

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertJob

func InsertJob(job Job) (int, error)

func InsertJobList

func InsertJobList(jobList []Job) error

func InsertJobListManual

func InsertJobListManual(jobList []Job) error

func RemoveJob

func RemoveJob(jobID int) error

func UpdateJob

func UpdateJob(job Job) 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 Job

type Job struct {
	ID               *int      `json:"id"`
	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"`
	JobCategoryID    *int      `json:"jobCategoryId"`
	CreatedBy        string    `json:"createdBy"`
	CreatedAt        time.Time `json:"createdAt"`
	UpdatedBy        string    `json:"updatedBy"`
	UpdatedAt        time.Time `json:"updatedAt"`
}

Job

func GetJob

func GetJob(jobID int) (*Job, error)

func GetJobList

func GetJobList(ids []int) ([]Job, error)

func GetJobListByUUIDs

func GetJobListByUUIDs(UUIDList []string) ([]Job, error)

func GetStartAndEndDateDiffJobList

func GetStartAndEndDateDiffJobList(diffInDate int) ([]Job, error)

func GetTopTenJobs

func GetTopTenJobs() ([]Job, error)

Jump to

Keyboard shortcuts

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