repository

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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) Create

func (r *StorePostgreSQL) Create(e *entity.Store) (entity.ID, error)

Create implements store.Repository

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

Jump to

Keyboard shortcuts

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