dao

package
v0.0.0-...-3c47a5c Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2018 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	COLLECTION = "movies"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MoviesDAO

type MoviesDAO struct {
	Server   string
	Database string
}

func (*MoviesDAO) Connect

func (m *MoviesDAO) Connect()

func (*MoviesDAO) Delete

func (m *MoviesDAO) Delete(movieId string) error

func (*MoviesDAO) FindAll

func (m *MoviesDAO) FindAll() ([]model.Movie, error)

func (*MoviesDAO) FindById

func (m *MoviesDAO) FindById(id string) (model.Movie, error)

func (*MoviesDAO) Insert

func (m *MoviesDAO) Insert(movie model.Movie) error

func (*MoviesDAO) Update

func (m *MoviesDAO) Update(movie model.Movie) error

Jump to

Keyboard shortcuts

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