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: 1

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