voucher

package
v0.1369.0-MLPAB2427you... Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathTaskList              = Path("/task-list")
	PathConfirmAllowedToVouch = Path("/confirm-allowed-to-vouch")
	PathConfirmYourName       = Path("/confirm-your-name")
	PathYourName              = Path("/your-name")
	PathVerifyDonorDetails    = Path("/verify-donor-details")
	PathConfirmYourIdentity   = Path("/confirm-your-identity")
	PathSignTheDeclaration    = Path("/sign-the-declaration")
)

Variables

This section is empty.

Functions

func CanGoTo added in v0.1366.0

func CanGoTo(provided *voucherdata.Provided, url string) bool

Types

type DynamoClient added in v0.1366.0

type DynamoClient interface {
	One(ctx context.Context, pk dynamo.PK, sk dynamo.SK, v interface{}) error
	Put(ctx context.Context, v interface{}) error
	WriteTransaction(ctx context.Context, transaction *dynamo.Transaction) error
}

type Path

type Path string

func (Path) Format

func (p Path) Format(id string) string

func (Path) Redirect

func (p Path) Redirect(w http.ResponseWriter, r *http.Request, appData appcontext.Data, lpaID string) error

func (Path) String

func (p Path) String() string

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(dynamoClient DynamoClient) *Store

func (*Store) Create

func (s *Store) Create(ctx context.Context, shareCode sharecodedata.Link, email string) (*voucherdata.Provided, error)

func (*Store) Get added in v0.1366.0

func (s *Store) Get(ctx context.Context) (*voucherdata.Provided, error)

func (*Store) Put added in v0.1367.0

func (s *Store) Put(ctx context.Context, provided *voucherdata.Provided) error

Directories

Path Synopsis
Package voucherpage provides the pages that a voucher interacts with.
Package voucherpage provides the pages that a voucher interacts with.

Jump to

Keyboard shortcuts

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