models

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: MIT Imports: 4 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	ID              string          `bson:"_id" json:"id"`
	BundleType      string          `bson:"bundle_type" json:"bundle_type"`
	Contents        []BundleContent `bson:"contents" json:"contents"`
	Creator         string          `bson:"creator" json:"creator"`
	CreatedDate     time.Time       `bson:"created_date" json:"created_date"`
	LastUpdatedBy   string          `bson:"last_updated_by" json:"last_updated_by"`
	PreviewTeams    []string        `bson:"preview_teams" json:"preview_teams"`
	PublishDateTime time.Time       `bson:"publish_date_time" json:"publish_date_time"`
	State           string          `bson:"state" json:"state"`
	Title           string          `bson:"title" json:"title"`
	UpdatedDate     time.Time       `bson:"updated_date" json:"updated_date"`
	WagtailManaged  bool            `bson:"wagtail_managed" json:"wagtail_managed"`
}

func CreateBundle

func CreateBundle(reader io.Reader) (*Bundle, error)

type BundleContent

type BundleContent struct {
	DatasetID string `bson:"dataset_id" json:"dataset_id"`
	EditionID string `bson:"edition_id" json:"edition_id"`
	ItemID    string `bson:"item_id" json:"item_id"`
	State     string `bson:"state" json:"state"`
	Title     string `bson:"title" json:"title"`
	URLPath   string `bson:"url_path" json:"url_path"`
}

Jump to

Keyboard shortcuts

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