gf_images_jobs_client

package
Version: v0.0.0-...-adf3044 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupJob

func CleanupJob(pJobIDstr string,
	pJobsMngrCh gf_images_jobs_core.JobsMngr,
	pRuntimeSys *gf_core.RuntimeSys)

func GetJobUpdateCh

func GetJobUpdateCh(pJobIDstr string,
	pJobsMngrCh gf_images_jobs_core.JobsMngr,
	pRuntimeSys *gf_core.RuntimeSys) chan gf_images_jobs_core.JobUpdateMsg

func RunUploadedImages

func RunUploadedImages(pClientTypeStr string,
	pImagesToProcessLst []gf_images_jobs_core.GFimageUploadedToProcess,
	pFlowsNamesLst []string,
	pJobsMngrCh gf_images_jobs_core.JobsMngr,
	pRuntimeSys *gf_core.RuntimeSys) (*gf_images_jobs_core.GFjobRunning, *gf_core.GFerror)

Types

type GFjobExpectedOutput

type GFjobExpectedOutput struct {
	Image_id_str                      gf_images_core.GFimageID `json:"image_id_str"`
	Image_source_url_str              string                   `json:"image_source_url_str"`
	Thumbnail_small_relative_url_str  string                   `json:"thumbnail_small_relative_url_str"`
	Thumbnail_medium_relative_url_str string                   `json:"thumbnail_medium_relative_url_str"`
	Thumbnail_large_relative_url_str  string                   `json:"thumbnail_large_relative_url_str"`
}

called "expected" because jobs are long-running processes, and they might fail at various stages of their processing. in that case some of these result values will be satisfied, others will not.

func RunExternImages

func RunExternImages(pClientTypeStr string,
	pImagesExternToProcessLst []gf_images_jobs_core.GFimageExternToProcess,
	pFlowsNamesLst []string,
	pJobsMngrCh gf_images_jobs_core.JobsMngr,
	pRuntimeSys *gf_core.RuntimeSys) (*gf_images_jobs_core.GFjobRunning, []*GFjobExpectedOutput, *gf_core.GFerror)

func RunLocalImgs

func RunLocalImgs(pClientTypeStr string,
	pImagesToProcessLst []gf_images_jobs_core.GFimageLocalToProcess,
	pFlowsNamesLst []string,
	pJobsMngrCh gf_images_jobs_core.JobsMngr,
	pRuntimeSys *gf_core.RuntimeSys) (*gf_images_jobs_core.GFjobRunning, []*GFjobExpectedOutput, *gf_core.GFerror)

Jump to

Keyboard shortcuts

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