Documentation ¶
Index ¶
- type OrderPostgreSQL
- type StorePostgreSQL
- func (r *StorePostgreSQL) Create(e *entity.Store) (entity.ID, error)
- func (r *StorePostgreSQL) Delete(id entity.ID) error
- func (r *StorePostgreSQL) Get(id string) (*entity.Store, error)
- func (r *StorePostgreSQL) RegisterMeliCredential(id entity.ID, c *common.MeliCredential) error
- func (r *StorePostgreSQL) RetrieveMeliCredentialsFromMeliUserID(id string) (*entity.ID, *common.MeliCredential, error)
- func (r *StorePostgreSQL) RetrieveMeliCredentialsFromStoreID(id entity.ID) (*common.MeliCredential, error)
- func (r *StorePostgreSQL) Update(e *entity.Store) error
- func (r *StorePostgreSQL) UpdateMeliCredentials(id entity.ID, c *common.MeliCredential) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderPostgreSQL ¶
type OrderPostgreSQL struct {
// contains filtered or unexported fields
}
func NewOrderPostgreSQL ¶
func NewOrderPostgreSQL(db *pgxpool.Pool, logger metrics.Logger) *OrderPostgreSQL
func (*OrderPostgreSQL) GetOrder ¶
func (r *OrderPostgreSQL) GetOrder(orderMarketplaceId string) (*entity.Order, error)
GetOrder implements order.Repository
func (*OrderPostgreSQL) RegisterOrder ¶
func (r *OrderPostgreSQL) RegisterOrder(o *entity.Order) error
RegisterOrder implements order.Repository
type StorePostgreSQL ¶
type StorePostgreSQL struct {
// contains filtered or unexported fields
}
func NewStorePostgreSQL ¶
func NewStorePostgreSQL(db *pgxpool.Pool, logger metrics.Logger) *StorePostgreSQL
func (*StorePostgreSQL) Delete ¶
func (r *StorePostgreSQL) Delete(id entity.ID) error
Delete implements store.Repository
func (*StorePostgreSQL) Get ¶
func (r *StorePostgreSQL) Get(id string) (*entity.Store, error)
Get implements store.Repository
func (*StorePostgreSQL) RegisterMeliCredential ¶
func (r *StorePostgreSQL) RegisterMeliCredential(id entity.ID, c *common.MeliCredential) error
RegisterMeliCredential implements store.Repository
func (*StorePostgreSQL) RetrieveMeliCredentialsFromMeliUserID ¶
func (r *StorePostgreSQL) RetrieveMeliCredentialsFromMeliUserID(id string) (*entity.ID, *common.MeliCredential, error)
RetrieveMeliCredentials implements store.Repository
func (*StorePostgreSQL) RetrieveMeliCredentialsFromStoreID ¶
func (r *StorePostgreSQL) RetrieveMeliCredentialsFromStoreID(id entity.ID) (*common.MeliCredential, error)
RetrieveMeliCredentials implements store.Repository
func (*StorePostgreSQL) Update ¶
func (r *StorePostgreSQL) Update(e *entity.Store) error
Update implements store.Repository
func (*StorePostgreSQL) UpdateMeliCredentials ¶
func (r *StorePostgreSQL) UpdateMeliCredentials(id entity.ID, c *common.MeliCredential) error
UpdateMeliCredentials implements store.Repository
Click to show internal directories.
Click to hide internal directories.