watchlist

package
v1.37.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IgnoreFieldMismatch = datastore.IgnoreFieldMismatch

Functions

func Query

Types

type Status

type Status string

type Watchlist

type Watchlist struct {
	mixin.Model[Watchlist]

	// Associated user .
	UserId string `json:"userId,omitempty"`

	// Email of the user or someone else if no user id exists
	Email string `json:"email,omitempty"`

	// Individual line items
	Movies  []movie.Movie `json:"movies" datastore:"-"`
	Movies_ string        `json:"-" datastore:",noindex"`

	// Arbitrary key/value pairs associated with this order
	Metadata  Map    `json:"metadata" datastore:"-"`
	Metadata_ string `json:"-" datastore:",noindex"`
}

func New

func New(db *datastore.Datastore) *Watchlist

func (*Watchlist) Defaults

func (w *Watchlist) Defaults()

func (Watchlist) Description

func (c Watchlist) Description() string

func (Watchlist) DisplayCreatedAt

func (c Watchlist) DisplayCreatedAt() string

func (Watchlist) DisplayId

func (c Watchlist) DisplayId() string

func (Watchlist) IntId

func (c Watchlist) IntId() int

func (*Watchlist) Load

func (c *Watchlist) Load(ps []datastore.Property) (err error)

func (Watchlist) MoviesJSON

func (w Watchlist) MoviesJSON() string

func (*Watchlist) RemoveItem

func (w *Watchlist) RemoveItem(id string) (err error)

func (*Watchlist) Save

func (w *Watchlist) Save() (ps []datastore.Property, err error)

func (*Watchlist) SetItem

func (w *Watchlist) SetItem(db *datastore.Datastore, id string) (err error)

func (*Watchlist) Validator

func (c *Watchlist) Validator() *val.Validator

Jump to

Keyboard shortcuts

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