Documentation ¶
Index ¶
- type OrderStorage
- func (ol *OrderStorage) CreateOrderByID(ctx context.Context, userID uint, data *models.ReceivedOrderItem) error
- func (ol *OrderStorage) GetBoughtOrdersByUserID(ctx context.Context, userID uint) ([]*models.ReturningOrder, error)
- func (ol *OrderStorage) GetSoldOrdersByUserID(ctx context.Context, userID uint) ([]*models.ReturningOrder, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderStorage ¶
type OrderStorage struct {
// contains filtered or unexported fields
}
func NewOrderStorage ¶
func NewOrderStorage(pool *pgxpool.Pool, metrics *mymetrics.DatabaseMetrics) *OrderStorage
func (*OrderStorage) CreateOrderByID ¶
func (ol *OrderStorage) CreateOrderByID(ctx context.Context, userID uint, data *models.ReceivedOrderItem) error
func (*OrderStorage) GetBoughtOrdersByUserID ¶
func (ol *OrderStorage) GetBoughtOrdersByUserID(ctx context.Context, userID uint) ([]*models.ReturningOrder, error)
func (*OrderStorage) GetSoldOrdersByUserID ¶
func (ol *OrderStorage) GetSoldOrdersByUserID(ctx context.Context, userID uint) ([]*models.ReturningOrder, error)
Click to show internal directories.
Click to hide internal directories.