repository

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

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

Go to latest
Published: Dec 15, 2023 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 IProductRepository

type IProductRepository interface {
	Insert(product domain.Product) (domain.Product, *exception.Error)
	FindAll() ([]domain.Product, *exception.Error)
	DeleteAll() *exception.Error
}

func NewProductRepository

func NewProductRepository(database *mongo.Database) IProductRepository

type IUserRepository

type IUserRepository interface {
	Insert(newData domain.User) (domain.User, *exception.Error)
}

func NewUserRepository

func NewUserRepository(database *mongo.Database) IUserRepository

Jump to

Keyboard shortcuts

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