census

package
v1.79.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatasetLandingPage

type DatasetLandingPage struct {
	HasOtherVersions    bool                             `json:"has_other_versions"`
	HasDownloads        bool                             `json:"has_downloads"`
	LatestVersionURL    string                           `json:"latest_version_url"`
	Dimensions          []sharedModel.Dimension          `json:"dimensions"`
	ShareDetails        sharedModel.ShareDetails         `json:"share_details"`
	Description         []string                         `json:"description"`
	IsCustom            bool                             `json:"is_custom"`
	IsFlexibleForm      bool                             `json:"is_flexible_form"`
	DatasetURL          string                           `json:"dataset_url"`
	Panels              []Panel                          `json:"panels"`
	QualityStatements   []Panel                          `json:"quality_statements"`
	SDC                 []Panel                          `json:"sdc"`
	HasSDC              bool                             `json:"has_sdc"`
	RelatedContentItems []sharedModel.RelatedContentItem `json:"related_content_items"`
	IsMultivariate      bool                             `json:"is_multivariate"`
	ShowXLSXInfo        bool                             `json:"show_xlsx_info"`
	FeedbackAPIURL      string                           `json:"feedback_api_url"`
	ImproveResults      model.Collapsible                `json:"improve_results"`
}

DatasetLandingPage contains properties related to the census dataset landing page

type Page

type Page struct {
	model.Page
	DatasetLandingPage  DatasetLandingPage    `json:"data"`
	Version             sharedModel.Version   `json:"version"`
	Versions            []sharedModel.Version `json:"versions"`
	ID                  string                `json:"id"`
	ContactDetails      contact.Details       `json:"contact_details"`
	HasContactDetails   bool                  `json:"has_contact_details"`
	IsNationalStatistic bool                  `json:"is_national_statistic"`
	ShowCensusBranding  bool                  `json:"show_census_branding"`
}

Page contains data for the census landing page

type Panel

type Panel struct {
	Type        PanelType `json:"type"`
	DisplayIcon bool      `json:"display_icon"`
	CSSClasses  []string  `json:"css_classes"`
	Body        []string  `json:"body"`
	Language    string    `json:"language"`
}

Panel contains the data required to populate a panel UI component

func (Panel) FuncGetPanelType

func (p Panel) FuncGetPanelType() (panelType string)

FuncGetPanelType returns the panel type as a string

type PanelType

type PanelType int
const (
	Info PanelType = iota
	Pending
	Success
	Error
)

Jump to

Keyboard shortcuts

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