movies

package
v0.0.0-...-c77689c Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Schema = "movie_db"
	Table  = "movie"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MovieNoSqlRepository

type MovieNoSqlRepository struct {
	Connection *mongo.Client
}

func (*MovieNoSqlRepository) GetAll

func (MovieNoSqlRepository *MovieNoSqlRepository) GetAll() ([]model.Movie, error)

func (*MovieNoSqlRepository) GetById

func (MovieNoSqlRepository *MovieNoSqlRepository) GetById(movieId string) (model.Movie, error)

func (*MovieNoSqlRepository) Save

func (MovieNoSqlRepository *MovieNoSqlRepository) Save(movie *model.Movie) error

Jump to

Keyboard shortcuts

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