Documentation ¶
Index ¶
- type FilmDAO
- func (p *FilmDAO) GetAll(ctx context.Context, title string) *[]model.Film
- func (f *FilmDAO) GetById(ctx context.Context, id primitive.ObjectID) (model.Film, error)
- func (f *FilmDAO) GetByIdRef(ctx context.Context, id int) (model.Film, error)
- func (p *FilmDAO) InsertOne(ctx context.Context, film model.AddFilm) *mongo.InsertOneResult
- type PlanetDAO
- func (p *PlanetDAO) Exists(ctx context.Context, name string) bool
- func (p *PlanetDAO) GetAll(ctx context.Context, filterPlanet model.FilterPlanet) *[]model.Planet
- func (p *PlanetDAO) InsertOne(ctx context.Context, planet model.AddPlanet) *mongo.InsertOneResult
- func (p *PlanetDAO) Remove(ctx context.Context, id primitive.ObjectID) *mongo.DeleteResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.