Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Lookup(string) (*models.Coupon, error) List() (map[string]*models.Coupon, error) }
Cache is an interface for how to lookup a coupon based upon the code.
func NewCouponCacheFromURL ¶
func NewCouponCacheFromURL(config *conf.Configuration) (Cache, error)
NewCouponCacheFromURL creates a coupon cache using the provided configuration.
type CouponNotFound ¶
type CouponNotFound struct{}
CouponNotFound is an error when a coupon could not be found.
func (CouponNotFound) Error ¶
func (CouponNotFound) Error() string
Click to show internal directories.
Click to hide internal directories.