Documentation ¶
Index ¶
- func InitService(pHTTPmux *http.ServeMux, pServiceInfo *gf_images_core.GFserviceInfo, ...) gf_images_jobs_core.JobsMngr
- func RunService(pHTTPmux *http.ServeMux, pServiceInfo *gf_images_core.GFserviceInfo, ...)
- func T__test_image_job__updates(pJobIDstr string, pJobsMngr gf_images_jobs_core.JobsMngr, ...)
- func TstartService(pMongoHostStr string, pTest *testing.T, pLogFun func(string, string))
- type ClientJobImageOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitService ¶
func InitService(pHTTPmux *http.ServeMux, pServiceInfo *gf_images_core.GFserviceInfo, pConfig *gf_images_core.GFconfig, pRuntimeSys *gf_core.RuntimeSys) gf_images_jobs_core.JobsMngr
func RunService ¶
func RunService(pHTTPmux *http.ServeMux, pServiceInfo *gf_images_core.GFserviceInfo, pInitDoneCh chan bool, pLogFun func(string, string))
Run_service runs/starts the gf_images service in the same process as where its being called. An HTTP servr is started and listens on a supplied port. DB(MongoDB) connection is established as well. S3 client is initialized as a target file-system for image files.
func T__test_image_job__updates ¶
func T__test_image_job__updates(pJobIDstr string, pJobsMngr gf_images_jobs_core.JobsMngr, pRuntimeSys *gf_core.RuntimeSys)
Types ¶
type ClientJobImageOutput ¶
type ClientJobImageOutput struct { Image_id_str gf_images_core.GFimageID Image_source_url_str string Thumbnail_small_relative_url_str string Thumbnail_medium_relative_url_str string Thumbnail_large_relative_url_str string }
func ClientDispatchProcessExternImages ¶
func ClientDispatchProcessExternImages(pInputImagesURLsLst []string, pInputImagesOriginPagesURLsLst []string, pClientTypeStr string, pTargetImageServiceHostPortStr string, pRuntimeSys *gf_core.RuntimeSys) (string, []*ClientJobImageOutput, *gf_core.GFerror)
Click to show internal directories.
Click to hide internal directories.