dao

package
v0.0.0-...-0fccaea Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 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 FilmDAO

type FilmDAO struct{}

func (*FilmDAO) GetAll

func (p *FilmDAO) GetAll(ctx context.Context, title string) *[]model.Film

func (*FilmDAO) GetById

func (f *FilmDAO) GetById(ctx context.Context, id primitive.ObjectID) (model.Film, error)

func (*FilmDAO) GetByIdRef

func (f *FilmDAO) GetByIdRef(ctx context.Context, id int) (model.Film, error)

func (*FilmDAO) InsertOne

func (p *FilmDAO) InsertOne(ctx context.Context, film model.AddFilm) *mongo.InsertOneResult

type PlanetDAO

type PlanetDAO struct{}

func (*PlanetDAO) Exists

func (p *PlanetDAO) Exists(ctx context.Context, name string) bool

func (*PlanetDAO) GetAll

func (p *PlanetDAO) GetAll(ctx context.Context, filterPlanet model.FilterPlanet) *[]model.Planet

func (*PlanetDAO) InsertOne

func (p *PlanetDAO) InsertOne(ctx context.Context, planet model.AddPlanet) *mongo.InsertOneResult

func (*PlanetDAO) Remove

Jump to

Keyboard shortcuts

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