data

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Article = ContentType{
	LocaliseKeyName: "Article",
	Type:            "article",
	SubTypes:        []string{"article", "article_download"},
}

Article - Search information specific for articles

View Source
var Bulletin = ContentType{
	LocaliseKeyName: "StatisticalBulletin",
	Type:            "bulletin",
	SubTypes:        []string{"bulletin"},
}

Bulletin - Search information specific for statistical bulletins

View Source
var Categories = []Category{Publication, Data, Other}

Categories represent the list of all search categories

View Source
var Compendium = ContentType{
	LocaliseKeyName: "Compendium",
	Type:            "compendia",
	SubTypes:        []string{"compendium_landing_page"},
}

Compendium - Search information specific for compendium

View Source
var CorporateInformation = ContentType{
	LocaliseKeyName: "CorporateInformation",
	Type:            "corporate_information",
	SubTypes:        []string{"static_foi", "static_page", "static_landing_page", "static_article"},
}

CorporateInformation - Search information specific for corporate information

View Source
var Data = Category{
	LocaliseKeyName: "Data",
	ContentTypes:    []ContentType{TimeSeries, Datasets, UserRequestedData},
}

Data - search information on data category

View Source
var Datasets = ContentType{
	LocaliseKeyName: "Datasets",
	Type:            "datasets",
	SubTypes:        []string{"dataset_landing_page", "reference_tables"},
}

Datasets - Search information specific for datasets

View Source
var Methodology = ContentType{
	LocaliseKeyName: "Methodology",
	Type:            "methodology",
	SubTypes:        []string{"static_methodology", "static_methodology_download", "static_qmi"},
}

Methodology - Search information specific for methodologies

View Source
var Other = Category{
	LocaliseKeyName: "Other",
	ContentTypes:    []ContentType{Methodology, CorporateInformation},
}

Other - search information on other categories

View Source
var Publication = Category{
	LocaliseKeyName: "Publication",
	ContentTypes:    []ContentType{Bulletin, Article, Compendium},
}

Publication - search information on publication category

View Source
var TimeSeries = ContentType{
	LocaliseKeyName: "TimeSeries",
	Type:            "time_series",
	SubTypes:        []string{"timeseries"},
}

TimeSeries - Search information specific for time series

View Source
var UserRequestedData = ContentType{
	LocaliseKeyName: "UserRequestedData",
	Type:            "user_requested_data",
	SubTypes:        []string{"static_adhoc"},
}

UserRequestedData - Search information specific for user requested data

Functions

This section is empty.

Types

type Category

type Category struct {
	LocaliseKeyName string        `json:"localise_key"`
	Count           int           `json:"count"`
	ContentTypes    []ContentType `json:"content_types"`
}

Category represents all the search categories in search page

type ContentType

type ContentType struct {
	LocaliseKeyName string   `json:"localise_key"`
	Count           int      `json:"count"`
	Type            string   `json:"type"`
	SubTypes        []string `bson:"sub_types" json:"sub_types"`
}

ContentType represents the type of the search results and the number of results for each type

Jump to

Keyboard shortcuts

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