voucher

package
v0.1543.0-MLPAB2556clo... Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathTaskList                     = Path("/task-list")
	PathConfirmAllowedToVouch        = Path("/confirm-allowed-to-vouch")
	PathYouCannotVouchForDonor       = Path("/you-cannot-vouch-for-donor")
	PathConfirmYourName              = Path("/confirm-your-name")
	PathYourName                     = Path("/your-name")
	PathVerifyDonorDetails           = Path("/verify-donor-details")
	PathDonorDetailsDoNotMatch       = Path("/donor-details-do-not-match")
	PathConfirmYourIdentity          = Path("/confirm-your-identity")
	PathSignTheDeclaration           = Path("/sign-the-declaration")
	PathIdentityWithOneLogin         = Path("/identity-with-one-login")
	PathIdentityWithOneLoginCallback = Path("/identity-with-one-login-callback")
	PathOneLoginIdentityDetails      = Path("/one-login-identity-details")
	PathUnableToConfirmIdentity      = Path("/unable-to-confirm-identity")
	PathThankYou                     = Path("/thank-you")
)

Variables

This section is empty.

Functions

This section is empty.

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) CanGoTo added in v0.1375.0

func (p Path) CanGoTo(provided *voucherdata.Provided) bool

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