gf_bookmarks

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PipelineCreate

func PipelineCreate(p_input *GFbookmarkInputCreate,
	pUserID gf_core.GF_ID,
	pImagesJobsMngr gf_images_jobs_core.JobsMngr,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror

Types

type GFbookmark

type GFbookmark struct {
	V_str                string             `bson:"v_str"` // schema_version
	Id                   primitive.ObjectID `bson:"_id,omitempty"`
	Id_str               gf_core.GF_ID      `bson:"id_str"`
	Deleted_bool         bool               `bson:"deleted_bool"`
	Creation_unix_time_f float64            `bson:"creation_unix_time_f"`
	User_id_str          gf_core.GF_ID      `bson:"user_id_str"` // creator user of the bookmark

	Url_str         string   `bson:"url_str"`
	Description_str string   `bson:"description_str"`
	Tags_lst        []string `bson:"tags_lst"`

	// SCREENSHOT
	Screenshot_image_id_str            gf_images_core.GF_image_id `bson:"screenshot_image_id_str"`
	Screenshot_image_thumbnail_url_str string                     `bson:"screenshot_image_thumbnail_url_str"`
}

type GFbookmarkExtern

type GFbookmarkExtern struct {
	Id_str               gf_core.GF_ID `json:"id_str"`
	Creation_unix_time_f float64       `json:"creation_unix_time_f"`
	Url_str              string        `json:"url_str"`
	Description_str      string        `json:"description_str"`
	Tags_lst             []string      `json:"tags_lst"`
}

type GFbookmarkInputCreate

type GFbookmarkInputCreate struct {
	User_id_str     gf_core.GF_ID
	Url_str         string   `mapstructure:"url_str"         validate:"required,min=5,max=400"`
	Description_str string   `mapstructure:"description_str" validate:"min=1,max=600"`
	Tags_lst        []string `mapstructure:"tags_lst"        validate:""`
}

type GFbookmarkInputGet

type GFbookmarkInputGet struct {
	Response_format_str string
	User_id_str         gf_core.GF_ID
}

type GFbookmarkOutputGet

type GFbookmarkOutputGet struct {
	Bookmarks_lst       []*GFbookmarkExtern
	TemplateRenderedStr string
}

func PipelineGet

func PipelineGet(p_input *GFbookmarkInputGet,
	p_tmpl *template.Template,
	p_subtemplates_names_lst []string,
	p_ctx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) (*GFbookmarkOutputGet, *gf_core.GFerror)

Jump to

Keyboard shortcuts

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