movie

package
v1.46.21 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 5 Imported by: 1 module, 0 packages

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

View Source
var IgnoreFieldMismatch = datastore.IgnoreFieldMismatch

Functions

func Query

Types

type Document

type Document struct {
	mixin.DocumentSaveLoad `datastore:"-" json:"-"`

	// Special Kind Option
	Kind string `search:",facet"`

	Id_  string
	Slug string
	EIDR string
	IMDB string

	Name        string
	Headline    string
	Description string

	AvailableOption string `search:"available,facet"`
	HiddenOption    string `search:"hidden,facet"`
}

func (*Document) Id

func (d *Document) Id() string

func (*Document) Init

func (d *Document) Init()

type Movie

type Movie struct {
	mixin.Model[Movie]

	// Unique human readable id
	Slug string `json:"slug"`
	EIDR string `json:"eidr,omitempty"`
	IMDB string `json:"imdb,omitempty"`

	// Product Name
	Name string `json:"name"`

	// Product headline
	Headline string `json:"headline" datastore:",noindex"`

	// Product Excerpt
	Excerpt string `json:"excerpt" datastore:",noindex"`

	// Product Description
	Description string `json:"description" datastore:",noindex"`

	// Product Media
	Header      Media   `json:"header"`
	Image       Media   `json:"image"`
	Screenshots []Media `json:"screenshots"`
	Trailers    []Media `json:"trailers"`

	Cast []string `json:"cast"`
	Crew []string `json:"crew"`

	// Is the product available
	Available bool `json:"available"`

	// Is product hidden from users
	Hidden bool `json:"hidden"`
}

func New

func New(db *datastore.Datastore) *Movie

func (*Movie) Defaults

func (m *Movie) Defaults()

func (Movie) DisplayImage

func (m Movie) DisplayImage() Media

func (Movie) DisplayName

func (m Movie) DisplayName() string

func (Movie) Document

func (m Movie) Document() mixin.Document

func (*Movie) Load

func (m *Movie) Load(ps []datastore.Property) (err error)

func (*Movie) Save

func (m *Movie) Save() ([]datastore.Property, error)

func (*Movie) Validator

func (m *Movie) Validator() *val.Validator

Jump to

Keyboard shortcuts

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