coupons

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: MIT Imports: 9 Imported by: 2

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

Jump to

Keyboard shortcuts

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