service

package
v0.0.0-...-09b6e72 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: GPL-3.0 Imports: 3 Imported by: 2

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.

Jump to

Keyboard shortcuts

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