Documentation ¶
Index ¶
- Constants
- Variables
- func NewMongoDBDescriptionRepository(conn *database.MongoDBConn) repository.DescriptionRepository
- func NewMongoDBIdentifierRepository(conn *database.MongoDBConn) repository.IdentifierRepository
- func NewMongoDBPriceRepository(conn *database.MongoDBConn) repository.PriceRepository
- func NewMongoDBProductRepository(conn *database.MongoDBConn) repository.ProductRepository
- func NewMongoDBTagRepository(conn *database.MongoDBConn) repository.TagRepository
- type MongoDBDescriptionRepository
- type MongoDBIdentifierRepository
- type MongoDBPriceRepository
- type MongoDBProductRepository
- type MongoDBTagRepository
Constants ¶
View Source
const ( DatabaseName = "vivo-synq" UserProductsCollection = "user_products" )
Variables ¶
View Source
var ErrNoResult = errors.New("nenhuma linha foi alterada nessa transação")
Functions ¶
func NewMongoDBDescriptionRepository ¶
func NewMongoDBDescriptionRepository(conn *database.MongoDBConn) repository.DescriptionRepository
func NewMongoDBIdentifierRepository ¶
func NewMongoDBIdentifierRepository(conn *database.MongoDBConn) repository.IdentifierRepository
func NewMongoDBPriceRepository ¶
func NewMongoDBPriceRepository(conn *database.MongoDBConn) repository.PriceRepository
func NewMongoDBProductRepository ¶
func NewMongoDBProductRepository(conn *database.MongoDBConn) repository.ProductRepository
func NewMongoDBTagRepository ¶
func NewMongoDBTagRepository(conn *database.MongoDBConn) repository.TagRepository
Types ¶
type MongoDBDescriptionRepository ¶
type MongoDBDescriptionRepository struct {
// contains filtered or unexported fields
}
func (*MongoDBDescriptionRepository) Delete ¶
func (m *MongoDBDescriptionRepository) Delete(before *entity.Description) error
func (*MongoDBDescriptionRepository) Insert ¶
func (m *MongoDBDescriptionRepository) Insert(after *entity.Description) error
func (*MongoDBDescriptionRepository) Update ¶
func (m *MongoDBDescriptionRepository) Update(before, after *entity.Description) error
type MongoDBIdentifierRepository ¶
type MongoDBIdentifierRepository struct {
// contains filtered or unexported fields
}
func (*MongoDBIdentifierRepository) Delete ¶
func (m *MongoDBIdentifierRepository) Delete(before *entity.Identifier) error
func (*MongoDBIdentifierRepository) Insert ¶
func (m *MongoDBIdentifierRepository) Insert(after *entity.Identifier) error
func (*MongoDBIdentifierRepository) Update ¶
func (m *MongoDBIdentifierRepository) Update(before, after *entity.Identifier) error
type MongoDBPriceRepository ¶
type MongoDBPriceRepository struct {
// contains filtered or unexported fields
}
func (*MongoDBPriceRepository) Delete ¶
func (m *MongoDBPriceRepository) Delete(before *entity.Price) error
type MongoDBProductRepository ¶
type MongoDBProductRepository struct {
// contains filtered or unexported fields
}
func (*MongoDBProductRepository) Delete ¶
func (m *MongoDBProductRepository) Delete(beforeDTO *entity.ProductDTO) error
func (*MongoDBProductRepository) Insert ¶
func (m *MongoDBProductRepository) Insert(afterDTO *entity.ProductDTO) error
func (*MongoDBProductRepository) Update ¶
func (m *MongoDBProductRepository) Update(beforeDTO, afterDTO *entity.ProductDTO) error
type MongoDBTagRepository ¶
type MongoDBTagRepository struct {
// contains filtered or unexported fields
}
func (*MongoDBTagRepository) Delete ¶
func (m *MongoDBTagRepository) Delete(before *entity.Tag) error
Click to show internal directories.
Click to hide internal directories.