film

package
v0.0.0-...-52f9a01 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*config.Config
}

func New

func New(configuration *config.Config) *Config

func (*Config) Routes

func (config *Config) Routes() *chi.Mux

Routes

type Film

type Film struct {
	ID    bson.ObjectId `bson:"_id,omitempty" json:"_id"`
	Genre string        `json:"genre"`
	Title string        `json:"title"`
	Year  float32       `json:"year"`

	Cast      []bson.ObjectId `bson:"cast,omitempty" json:"cast"`
	FilmMaker bson.ObjectId   `bson:"filmMaker,omitempty" json:"filmMaker"`
}

Data model

Jump to

Keyboard shortcuts

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