mapper

package
v0.0.0-...-8c0b16f Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulletinModel

type BulletinModel struct {
	coreModel.Page
	Summary           string        `json:"summary"`
	Sections          []Section     `json:"sections"`
	Accordion         []Section     `json:"accordion"`
	Charts            []Figure      `json:"charts"`
	Tables            []Figure      `json:"tables"`
	Images            []Figure      `json:"images"`
	Equations         []Figure      `json:"equations"`
	RelatedBulletins  []Link        `json:"relatedBulletins"`
	RelatedData       []Link        `json:"relatedData"`
	Links             []Link        `json:"links"`
	URI               string        `json:"uri"`
	NationalStatistic bool          `json:"nationalStatistic"`
	LatestRelease     bool          `json:"latestRelease"`
	Edition           string        `json:"edition"`
	ReleaseDate       string        `json:"releaseDate"`
	NextRelease       string        `json:"nextRelease"`
	Contact           Contact       `json:"contact"`
	Versions          []Message     `json:"versions"`
	Alerts            []Message     `json:"alerts"`
	ParentPath        string        `json:"parentPath"`
	CorrectedPath     string        `json:"correctedPath"`
	LatestReleaseUri  string        `json:"latestReleaseUri"`
	ContentsView      []ViewSection `json:"contentsView"`
	ShareLinks        ShareLinks    `json:"shareLinks"`
	Census2021        bool          `json:"census_2021"`
	AboutTheData      bool          `json:"about_the_data"`
	Auxiliary         []Section     `json:"auxiliary"`
}

func CreateBulletinModel

func CreateBulletinModel(basePage coreModel.Page, bulletin articles.Bulletin, bcs []zebedee.Breadcrumb, lang, requestProtocol, serviceMessage string, emergencyBannerContent zebedee.EmergencyBanner) BulletinModel

func CreateSixteensBulletinModel

func CreateSixteensBulletinModel(basePage coreModel.Page, bulletin articles.Bulletin, bcs []zebedee.Breadcrumb, lang string) BulletinModel

type Contact

type Contact struct {
	Name      string `json:"name"`
	Email     string `json:"email"`
	Telephone string `json:"telephone"`
}

type Figure

type Figure struct {
	Title    string `json:"title"`
	Filename string `json:"filename"`
	Version  string `json:"version"`
	URI      string `json:"uri"`
}
type Link struct {
	Title string `json:"title"`
	URI   string `json:"uri"`
}

type Message

type Message struct {
	Date     string `json:"date"`
	Markdown string `json:"markdown"`
	URI      string `json:"uri"`
}

type Section

type Section struct {
	Title    string `json:"title"`
	Markdown string `json:"markdown"`
}

type SectionReference

type SectionReference struct {
	Type  string
	Index int
}
type ShareLinks map[string]coreModel.ShareLink

type ViewSection

type ViewSection struct {
	Id       string
	Type     string
	Source   *[]Section
	Index    int
	BackTo   coreModel.BackTo
	Language string
}

Intermediate view to aid template rendering of Sections and Accordion

Jump to

Keyboard shortcuts

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