dao

package
v0.0.0-...-b82e5bb Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MIT Imports: 4 Imported by: 2

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) Create

func (m *MoviesDAO) Create(movie Movie) error

func (*MoviesDAO) Delete

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

func (*MoviesDAO) GetAll

func (m *MoviesDAO) GetAll() ([]Movie, error)

func (*MoviesDAO) GetByID

func (m *MoviesDAO) GetByID(id string) (Movie, error)

func (*MoviesDAO) Update

func (m *MoviesDAO) Update(id string, movie Movie) error

Jump to

Keyboard shortcuts

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