Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductRepository ¶
type ProductRepository interface { Insert(product entity.Product) FindAll() (products []entity.Product) DeleteAll() }
func NewProductRepository ¶
func NewProductRepository(database *mongo.Database) ProductRepository
type UserRepository ¶
type UserRepository interface { Register(users *entity.UserEntity) error GetData(phone string) (*entity.UserEntity, error) Login(phone string) (*entity.UserEntity, error) }
func NewUserRepository ¶
func NewUserRepository(db *sql.DB) UserRepository
Click to show internal directories.
Click to hide internal directories.