Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CouponsService ¶
type CouponsService interface { CreateSchema(ctx context.Context, event string, coupons []model.Coupon) (rs string, err error) MarkPresent(ctx context.Context, attendance model.Attendance) (rs string, err error) RedeemCoupon(ctx context.Context, attendance model.Attendance, couponName string) (rs string, err error) DeleteCoupon(ctx context.Context, event string, coupon model.Coupon) (rs string, err error) DeleteSchema(ctx context.Context, event string, query model.Coupon) (rs string, err error) ViewSchema(ctx context.Context, event string) (rs []model.Coupon, err error) }
CouponsService describes the service.
func New ¶
func New(middleware []Middleware) CouponsService
New returns a CouponsService with all of the expected middleware wired in.
func NewBasicCouponsService ¶
func NewBasicCouponsService() CouponsService
NewBasicCouponsService returns a naive, stateless implementation of CouponsService.
type Middleware ¶
type Middleware func(CouponsService) CouponsService
Middleware describes a service middleware.
Click to show internal directories.
Click to hide internal directories.