infra

package
v0.0.0-...-38a7862 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 (*MongoDBDescriptionRepository) Insert

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 (*MongoDBIdentifierRepository) Insert

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

func (*MongoDBPriceRepository) Insert

func (m *MongoDBPriceRepository) Insert(after *entity.Price) error

func (*MongoDBPriceRepository) Update

func (m *MongoDBPriceRepository) Update(before, after *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

func (*MongoDBTagRepository) Insert

func (m *MongoDBTagRepository) Insert(after *entity.Tag) error

func (*MongoDBTagRepository) Update

func (m *MongoDBTagRepository) Update(before, after *entity.Tag) error

Jump to

Keyboard shortcuts

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