gf_images_flows

package
v0.0.0-...-a1b0e2b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddExternImage

func AddExternImage(pImageExternURLstr string,
	pImageOriginPageURLstr string,
	pFlowsNamesLst []string,
	pClientTypeStr string,
	pUserIDstr gf_core.GF_ID,
	pJobsMngrCh chan gf_images_jobs_core.JobMsg,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) (*string, *string, gf_images_core.GFimageID, *gf_core.GFerror)

func AddExternImageWithPolicy

func AddExternImageWithPolicy(pImageExternURLstr string,
	pImageOriginPageURLstr string,
	pFlowsNamesLst []string,
	pClientTypeStr string,
	pUserIDstr gf_core.GF_ID,
	pJobsMngrCh chan gf_images_jobs_core.JobMsg,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) (*string, *string, gf_images_core.GF_image_id, *gf_core.GFerror)

func AddExternImages

func AddExternImages(pImagesExternURLsLst []string,
	pImagesOriginPagesURLsStr []string,
	pFlowsNamesLst []string,
	pClientTypeStr string,
	pUserID gf_core.GF_ID,
	pJobsMngrCh chan gf_images_jobs_core.JobMsg,
	pRuntimeSys *gf_core.RuntimeSys) (*string, []*string, []gf_images_core.GFimageID, *gf_core.GFerror)

func CreateIfMissing

func CreateIfMissing(pFlowsNamesLst []string,
	pUserID gf_core.GF_ID,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror

func DBmongoAddFlowNameToImage

func DBmongoAddFlowNameToImage(p_flow_name_str string,
	p_image_gf_id_str gf_images_core.Gf_image_id,
	pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror

func DBmongoGetAll

func DBmongoGetAll(pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) ([]map[string]interface{}, *gf_core.GFerror)

func DBmongoGetFlowsIDs

func DBmongoGetFlowsIDs(pFlowsNamesLst []string,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) ([]gf_core.GF_ID, *gf_core.GFerror)

func DBmongoGetID

func DBmongoGetID(pFlowNameStr string,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) (gf_core.GF_ID, *gf_core.GFerror)

func DBsqlCheckFlowExists

func DBsqlCheckFlowExists(pFlowNameStr string,
	pRuntimeSys *gf_core.RuntimeSys) (bool, *gf_core.GFerror)

func DBsqlCreateFlow

func DBsqlCreateFlow(pFlowID gf_core.GF_ID,
	pFlowNameStr string,
	pOwnerUserID gf_core.GF_ID,
	pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror

func DBsqlCreateTables

func DBsqlCreateTables(pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror

func DBsqlGetFlowsIDs

func DBsqlGetFlowsIDs(pFlowsNamesLst []string,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) ([]gf_core.GF_ID, *gf_core.GFerror)

func DBsqlGetID

func DBsqlGetID(pFlowNameStr string,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) (gf_core.GF_ID, *gf_core.GFerror)

func Init

func Init(pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror

func InitHandlers

func InitHandlers(pAuthSubsystemTypeStr string,
	pAuthLoginURLstr string,
	pKeyServer *gf_identity_core.GFkeyServerInfo,
	pHTTPmux *http.ServeMux,
	pTemplatesPathsMap map[string]string,
	pJobsMngrCh chan gf_images_jobs_core.JobMsg,
	pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror

func VerifyPolicy

func VerifyPolicy(pOpStr string,
	pFlowsNamesLst []string,
	pUserID gf_core.GF_ID,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror

Types

type GFflow

type GFflow struct {
	Vstr              string
	IDstr             gf_core.GF_ID
	CreationUNIXtimeF float64
	NameStr           string
	OwnerUserID       gf_core.GF_ID
	EditorUserIDs     []gf_core.GF_ID
}

func Create

func Create(pFlowNameStr string,
	pOwnerUserIDstr gf_core.GF_ID,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) (*GFflow, *gf_core.GFerror)

type GFflowMongo

type GFflowMongo struct {
	Vstr              string             `bson:"v_str"` // schema_version
	Id                primitive.ObjectID `bson:"_id,omitempty"`
	IDstr             gf_core.GF_ID      `bson:"id_str"`
	CreationUNIXtimeF float64            `bson:"creation_unix_time_f"`
	NameStr           string             `bson:"name_str"`
}

type GFimageExistsCheck

type GFimageExistsCheck struct {
	Id                  primitive.ObjectID `bson:"_id,omitempty"`
	IDstr               gf_core.GF_ID      `bson:"id_str"`
	Tstr                string             `bson:"t"`
	CreationUNIXtimeF   float64            `bson:"creation_unix_time_f"`
	ImagesExternURLsLst []string           `bson:"images_extern_urls_lst"`
}

Jump to

Keyboard shortcuts

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