gf_images_lib

package
v0.0.0-...-f412091 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: GPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

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)

func TstartService

func TstartService(pMongoHostStr string,
	pTest *testing.T,
	pLogFun func(string, string))

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)

Jump to

Keyboard shortcuts

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