voucher

package
v0.1580.0-MLPAB2540tra... Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

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

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