Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DBClient *mongo.Client = CreateDBClient()
Functions ¶
Types ¶
type CreateMovieInput ¶
type CreateMovieInput struct { Title string `json:"title" binding:"required"` Genre string `json:"genre" binding:"required"` Director string `json:"director" binding:"required"` Language string `json:"language" binding:"required"` CountryOfOrigin string `json:"country_of_origin" binding:"required"` Actors []string `json:"actors" binding:"required"` ReleaseDate string `json:"release_date" binding:"required"` }
input used to marshal for POST /movies endpoint
type Movie ¶
type Movie struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id"` Title string `json:"title"` Genre string `json:"genre"` Director string `json:"director"` Language string `json:"language"` CountryOfOrigin string `json:"country_of_origin"` Actors []string `json:"actors"` ReleaseDate string `json:"release_date"` }
Click to show internal directories.
Click to hide internal directories.