gf_home_lib

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CLIparseArgs

func CLIparseArgs(pLogFun func(string, string)) map[string]interface{}

func DBmongoCreateHomeViz

func DBmongoCreateHomeViz(pHomeViz *GFhomeViz,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror

func DBmongoUpdateHomeVizComponents

func DBmongoUpdateHomeVizComponents(pUserIDstr gf_core.GF_ID,
	pUpdatedComponentsMap map[string]GFhomeVizComponent,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror

func InitService

func InitService(pTemplatesPathsMap map[string]string,
	pServiceInfo *GFserviceInfo,
	pHTTPmux *http.ServeMux,
	pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror

func PipelineRenderDashboard

func PipelineRenderDashboard(pTmpl *template.Template,
	pSubtemplatesNamesLst []string,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) (string, *gf_core.GFerror)

func PipelineVizPropsUpdate

func PipelineVizPropsUpdate(pInput *GFvizPropsUpdateInput,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror

func Tinit

func Tinit() *gf_core.RuntimeSys

Types

type GFhomeViz

type GFhomeViz struct {
	Vstr              string             `bson:"v_str"` // schema_version
	Id                primitive.ObjectID `bson:"_id,omitempty"`
	IDstr             gf_core.GF_ID      `bson:"id_str"`
	DeletedBool       bool               `bson:"deleted_bool"`
	CreationUNIXtimeF float64            `bson:"creation_unix_time_f"`

	OwnerUserIDstr gf_core.GF_ID                 `bson:"owner_user_id_str"`
	ComponentsMap  map[string]GFhomeVizComponent `bson:"components_map"`
}

func DBmongoGetHomeViz

func DBmongoGetHomeViz(pUserIDstr gf_core.GF_ID,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) (*GFhomeViz, *gf_core.GFerror)

func PipelineVizPropsCreate

func PipelineVizPropsCreate(pUserIDstr gf_core.GF_ID,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) (*GFhomeViz, *gf_core.GFerror)

func PipelineVizPropsGet

func PipelineVizPropsGet(pUserIDstr gf_core.GF_ID,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) (*GFhomeViz, *gf_core.GFerror)

type GFhomeVizComponent

type GFhomeVizComponent struct {
	NameStr            string `bson:"name_str"             json:"name_str"`
	ScreenXint         int64  `bson:"screen_x_int"         json:"screen_x_int"`
	ScreenYint         int64  `bson:"screen_y_int"         json:"screen_y_int"`
	ColorBackgroundStr string `bson:"color_background_str" json:"color_background_str"`
}

type GFserviceInfo

type GFserviceInfo struct {

	//--------------------------
	// AUTH_SUBSYSTEM_TYPE
	AuthSubsystemTypeStr string

	// AUTH_LOGIN_URL - url of the login page to which the system should
	//                  redirect users after certain operations
	AuthLoginURLstr string

	KeyServer *gf_identity_core.GFkeyServerInfo
}

type GFvizPropsUpdateInput

type GFvizPropsUpdateInput struct {
	UserIDstr        gf_core.GF_ID
	ComponentNameStr string
	ScreenXint       int64
	ScreenYint       int64
}

Jump to

Keyboard shortcuts

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