Documentation
¶
Index ¶
- type PgAddressRepository
- func (r *PgAddressRepository) Create(newAddress domain.NewAddress) (*domain.Address, error)
- func (r *PgAddressRepository) Delete(id string) error
- func (r *PgAddressRepository) FindAll(pagination domain.Pagination) ([]domain.Address, domain.Pagination, error)
- func (r *PgAddressRepository) FindBy(filters map[string]interface{}) ([]domain.Address, error)
- func (r *PgAddressRepository) FindById(id string) (*domain.Address, error)
- func (r *PgAddressRepository) Update(address domain.Address) error
- type PgCustomerRepository
- func (r *PgCustomerRepository) Create(newCustomer domain.NewCustomer) (*domain.Customer, error)
- func (r *PgCustomerRepository) Delete(id string) error
- func (r *PgCustomerRepository) FindAll(pagination domain.Pagination, filters domain.FindAllCustomerFilters) ([]domain.Customer, domain.Pagination, error)
- func (r *PgCustomerRepository) FindById(id string) (*domain.Customer, error)
- func (r *PgCustomerRepository) Update(customer domain.Customer) error
- type PgProductRepository
- func (r *PgProductRepository) Create(newProduct domain.NewProduct) (*domain.Product, error)
- func (r *PgProductRepository) Delete(id string) error
- func (r *PgProductRepository) FindAll(pagination domain.Pagination, filters domain.FindAllProductFilters) ([]domain.Product, domain.Pagination, error)
- func (r *PgProductRepository) FindById(id string) (*domain.Product, error)
- func (r *PgProductRepository) Update(product domain.Product) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PgAddressRepository ¶
type PgAddressRepository struct {
// contains filtered or unexported fields
}
func NewPgAddressRepository ¶
func NewPgAddressRepository(db *pgxpool.Pool) *PgAddressRepository
func (*PgAddressRepository) Create ¶
func (r *PgAddressRepository) Create(newAddress domain.NewAddress) (*domain.Address, error)
func (*PgAddressRepository) Delete ¶
func (r *PgAddressRepository) Delete(id string) error
func (*PgAddressRepository) FindAll ¶
func (r *PgAddressRepository) FindAll(pagination domain.Pagination) ([]domain.Address, domain.Pagination, error)
func (*PgAddressRepository) FindBy ¶
func (r *PgAddressRepository) FindBy(filters map[string]interface{}) ([]domain.Address, error)
type PgCustomerRepository ¶
type PgCustomerRepository struct {
// contains filtered or unexported fields
}
func NewPgCustomerRepository ¶
func NewPgCustomerRepository(db *pgxpool.Pool) *PgCustomerRepository
func (*PgCustomerRepository) Create ¶
func (r *PgCustomerRepository) Create(newCustomer domain.NewCustomer) (*domain.Customer, error)
func (*PgCustomerRepository) Delete ¶
func (r *PgCustomerRepository) Delete(id string) error
func (*PgCustomerRepository) FindAll ¶
func (r *PgCustomerRepository) FindAll(pagination domain.Pagination, filters domain.FindAllCustomerFilters) ([]domain.Customer, domain.Pagination, error)
type PgProductRepository ¶
type PgProductRepository struct {
// contains filtered or unexported fields
}
func NewPgProductRepository ¶
func NewPgProductRepository(db *pgxpool.Pool) *PgProductRepository
func (*PgProductRepository) Create ¶
func (r *PgProductRepository) Create(newProduct domain.NewProduct) (*domain.Product, error)
func (*PgProductRepository) Delete ¶
func (r *PgProductRepository) Delete(id string) error
func (*PgProductRepository) FindAll ¶
func (r *PgProductRepository) FindAll(pagination domain.Pagination, filters domain.FindAllProductFilters) ([]domain.Product, domain.Pagination, error)
Click to show internal directories.
Click to hide internal directories.