gf_domains_lib

package
Version: v0.0.0-...-9ab1c54 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: GPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBindexInit

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

func DiscoverDomainsInDB

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

func InitDomainsAggregation

func InitDomainsAggregation(pRuntimeSys *gf_core.RuntimeSys)

func InitHandlers

func InitHandlers(p_templates_paths_map map[string]string,
	p_mux *http.ServeMux,
	pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror

Types

type GFdomain

type GFdomain struct {
	Id            primitive.ObjectID `bson:"_id,omitempty"`
	Id_str        string             `bson:"id_str"`
	T_str         string             `bson:"t"` // "domain"
	Name_str      string             `bson:"name_str"`
	Count_int     int                `bson:"count_int"`
	Domain_posts  GFdomainPosts      `bson:"posts_domain"`
	Domain_images GFdomainImages     `bson:"images_domain"`
}

type GFdomainImages

type GFdomainImages struct {
	Name_str            string         `bson:"_id"`
	Count_int           int            `bson:"count_int"`           // total count of all subpages counts
	Subpages_Counts_map map[string]int `bson:"subpages_counts_map"` // counts of individual sub-page urls that images come from
}

func GetDomainsImagesDB

func GetDomainsImagesDB(pRuntimeSys *gf_core.RuntimeSys) ([]GFdomainImages, *gf_core.GFerror)

type GFdomainPosts

type GFdomainPosts struct {
	Name_str  string `bson:"name_str"`
	Count_int int    `bson:"count_int"`
}

func GetDomainsPostsDB

func GetDomainsPostsDB(pRuntimeSys *gf_core.RuntimeSys) ([]GFdomainPosts, *gf_core.GFerror)

Jump to

Keyboard shortcuts

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