Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB gorm.DB
DB - Postgres Db Handle
Functions ¶
Types ¶
type Movie ¶
type Movie struct { gorm.Model ID uint `json:"id" gorm:"primary_key"` Title string `json:"title"` Director string `json:"director"` Genre string `json:"genre"` }
Movie Model for the Movie table
type MovieCollection ¶
type MovieCollection struct {
Movies []Movie
}
MovieCollection - A []Movie
var Archive *MovieCollection
Archive - MovieCollection Pointer
Click to show internal directories.
Click to hide internal directories.