Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitHandlers ¶
func InitImgToGIFmigration ¶
func InitImgToGIFmigration(p_images_store_local_dir_path_str string, p_s3_bucket_name_str string, p_s3_info *gf_aws.GFs3Info, pRuntimeSys *gf_core.RuntimeSys)
TEMPORARY - only used for a little while, until all GIF format images are also
created in their GIF record form. new versions of crawler and chrome_ext logic has proper creation of both image and gif DB records, but old image only DB records need to be processed
Types ¶
type GFgif ¶
type GFgif struct { Id primitive.ObjectID `json:"-" bson:"_id,omitempty"` Id_str string `json:"id_str" bson:"id_str"` T_str string `json:"-" bson:"t"` //"gif" Creation_unix_time_f float64 `json:"creation_unix_time_f" bson:"creation_unix_time_f"` Deleted_bool bool `json:"deleted_bool" bson:"deleted_bool"` Deleted_unix_time_f float64 `json:"deleted_unix_time_f" bson:"deleted_unix_time_f"` //------------------ // indicates if GIF data in here is valid: // - urls are correct and work // - gif dimensions are correct // - frames number is correct // this is a new field, and some old GIF's might be valid but not contain this field. // in scenarios where a gif is indicated as valid, but shows to have any of its data not correct // (or its link dont work) then this field will be set to false. Valid_bool bool `json:"valid_bool" bson:"valid_bool"` //------------------ Title_str string `json:"title_str" bson:"title_str"` Gf_url_str string `json:"gf_url_str" bson:"gf_url_str"` Origin_url_str string `json:"origin_url_str" bson:"origin_url_str"` // external url from which the GIF came Origin_page_url_str string `json:"origin_page_url_str" bson:"origin_page_url_str"` // external url of the page from which the GIF came Origin_page_domain_str string `json:"origin_page_domain_str" bson:"origin_page_domain_str"` // external domain of the page from which the GIF came Width_int int `json:"width_int" bson:"width_int"` Height_int int `json:"height_int" bson:"height_int"` Preview_frames_num_int int `json:"preview_frames_num_int" bson:"preview_frames_num_int"` PreviewFramesS3urlsLst []string `json:"previewFramesS3urlsLst" bson:"previewFramesS3urlsLst"` Tags_lst []string `json:"tags_lst" bson:"tags_lst"` Hash_str string `json:"hash_str" bson:"hash_str"` GFimageIDstr gf_images_core.GFimageID `json:"gf_image_id_str" bson:"gf_image_id_str"` }
func Process ¶
func Process(pImageIDstr gf_images_core.Gf_image_id, p_image_source_url_str string, p_image_origin_page_url_str string, p_gif_download_and_frames__local_dir_path_str string, p_image_client_type_str string, p_flows_names_lst []string, p_create_new_db_img_bool bool, pMediaDomainStr string, pS3bucketNameStr string, pS3info *gf_aws.GFs3Info, pCtx context.Context, pRuntimeSys *gf_core.RuntimeSys) (*GFgif, string, *gf_core.GFerror)
func ProcessAndUpload ¶
func ProcessAndUpload(pImageIDstr gf_images_core.GFimageID, p_image_source_url_str string, p_image_origin_page_url_str string, p_gif_download_and_frames__local_dir_path_str string, p_image_client_type_str string, p_flows_names_lst []string, p_create_new_db_img_bool bool, pMediaDomainStr string, pS3bucketNameStr string, pS3info *gf_aws.GFs3Info, pCtx context.Context, pRuntimeSys *gf_core.RuntimeSys) (*GFgif, *gf_core.GFerror)
Click to show internal directories.
Click to hide internal directories.