fixtures

package
v0.803.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attorney

func Attorney(
	tmpl template.Template,
	sessionStore sesh.Store,
	shareCodeSender ShareCodeSender,
	donorStore DonorStore,
	certificateProviderStore CertificateProviderStore,
	attorneyStore AttorneyStore,
) page.Handler

func CertificateProvider

func CertificateProvider(
	tmpl template.Template,
	sessionStore sesh.Store,
	shareCodeSender ShareCodeSender,
	donorStore page.DonorStore,
	certificateProviderStore CertificateProviderStore,
) page.Handler

func Dashboard

func Dashboard(
	tmpl template.Template,
	sessionStore sesh.Store,
	shareCodeSender *page.ShareCodeSender,
	donorStore page.DonorStore,
	certificateProviderStore CertificateProviderStore,
	attorneyStore AttorneyStore,
) page.Handler

func Donor

func Donor(
	tmpl template.Template,
	sessionStore sesh.Store,
	donorStore DonorStore,
	certificateProviderStore CertificateProviderStore,
	attorneyStore AttorneyStore,
	documentStore DocumentStore,
) page.Handler

Types

type DocumentStore added in v0.794.0

type DocumentStore interface {
	GetAll(context.Context) (page.Documents, error)
	Put(context.Context, page.Document) error
	Create(ctx context.Context, lpa *page.Lpa, filename string, data []byte) (page.Document, error)
}

type DonorStore

type DonorStore interface {
	Create(context.Context) (*page.Lpa, error)
	Put(context.Context, *page.Lpa) error
}

type Name

type Name struct {
	Firstnames, Lastname string
}

type ShareCodeSender

type ShareCodeSender interface {
	SendCertificateProvider(ctx context.Context, template notify.Template, appData page.AppData, identity bool, lpa *page.Lpa) error
	SendAttorneys(ctx context.Context, appData page.AppData, lpa *page.Lpa) error
	UseTestCode()
}

Jump to

Keyboard shortcuts

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