Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateOrder ¶
Types ¶
type OrderCache ¶
type OrderCache struct {
// contains filtered or unexported fields
}
func NewOrderCache ¶
func NewOrderCache(cache *cache.OrderCache) *OrderCache
func (*OrderCache) CreateCache ¶
func (oc *OrderCache) CreateCache(or models.Order)
func (*OrderCache) GetOrderByIdCache ¶
func (oc *OrderCache) GetOrderByIdCache(id string) *models.Order
func (*OrderCache) GetOrdersCache ¶
func (oc *OrderCache) GetOrdersCache(limit int, offset int) []*models.Order
func (*OrderCache) GetOrdersCount ¶
func (oc *OrderCache) GetOrdersCount() int
func (*OrderCache) PreloadCache ¶
func (oc *OrderCache) PreloadCache(orders []models.Order)
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func NewOrderPostgres ¶
func (*Repo) CreateTable ¶
type Repository ¶
func NewRepository ¶
func NewRepository(db *pgxpool.Pool, cache *cache.OrderCache) *Repository
Click to show internal directories.
Click to hide internal directories.