db

package
v0.0.0-...-5346628 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Services

type Services types.DB

Services expose db methods

func (*Services) GetPostByID

func (s *Services) GetPostByID(filter bson.M) (*models.Post, error)

GetPostByID retrieves a post from db based on id

func (*Services) GetReviewByID

func (s *Services) GetReviewByID(filter bson.M) (*models.Review, error)

GetReviewByID retrieves a review from db based on id

func (*Services) GetReviewsByPostID

func (s *Services) GetReviewsByPostID(filter bson.M) (*[]*models.Review, error)

func (*Services) GetReviewsByUserID

func (s *Services) GetReviewsByUserID(filter bson.M) (*[]*models.Review, error)

Jump to

Keyboard shortcuts

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