repository

package
v0.0.0-...-0de774d Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCustomerRepository

func NewCustomerRepository(cfg *config.Cache, db *pg.DB, cache Cache) customer.Repository

NewCustomerRepository create a new customer repository.

Types

type Cache

type Cache interface {
	StoreToCache(key string, value customer.Customer) error
	GetFromCache(key, field string) (*customer.Customer, error)
	RemoveFromCache(key, field string) error
}

Cache provides access to customer cache

Jump to

Keyboard shortcuts

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