Documentation ¶
Index ¶
- func New(ctx context.Context, DatabaseURI string) storages.Storager
- type Storage
- func (s *Storage) AddOrder(ctx context.Context, order models.Order)
- func (s *Storage) AddOrders(ctx context.Context, orders []models.Order) (err error)
- func (s *Storage) GetAllOrders(ctx context.Context) ([]models.Order, error)
- func (s *Storage) GetOrderByUID(_ context.Context, orderUID string) (models.Order, error)
- func (s *Storage) GetStats(_ context.Context) models.Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) GetAllOrders ¶
func (*Storage) GetOrderByUID ¶
Click to show internal directories.
Click to hide internal directories.