Documentation ¶
Index ¶
- Constants
- func Register(rootMux *http.ServeMux, logger Logger, tmpls template.Templates, ...)
- type AddressClient
- type CertificateProviderStore
- type DonorStore
- type EvidenceReceivedStore
- type GetDonorStore
- type Handler
- func ApplicationReason(tmpl template.Template, donorStore DonorStore) Handler
- func AreYouApplyingForADifferentFeeType(tmpl template.Template, payer Payer, donorStore DonorStore) Handler
- func CanEvidenceBeUploaded(tmpl template.Template) Handler
- func CertificateProviderAddress(logger Logger, tmpl template.Template, addressClient AddressClient, ...) Handler
- func CertificateProviderDetails(tmpl template.Template, donorStore DonorStore) Handler
- func CheckYourLpa(tmpl template.Template, donorStore DonorStore, shareCodeSender ShareCodeSender, ...) Handler
- func ChooseAttorneys(tmpl template.Template, donorStore DonorStore, uuidString func() string) Handler
- func ChooseAttorneysAddress(logger Logger, tmpl template.Template, addressClient AddressClient, ...) Handler
- func ChooseAttorneysSummary(tmpl template.Template) Handler
- func ChoosePeopleToNotify(tmpl template.Template, donorStore DonorStore, uuidString func() string) Handler
- func ChoosePeopleToNotifyAddress(logger Logger, tmpl template.Template, addressClient AddressClient, ...) Handler
- func ChoosePeopleToNotifySummary(tmpl template.Template) Handler
- func ChooseReplacementAttorneys(tmpl template.Template, donorStore DonorStore, uuidString func() string) Handler
- func ChooseReplacementAttorneysAddress(logger Logger, tmpl template.Template, addressClient AddressClient, ...) Handler
- func ChooseReplacementAttorneysSummary(tmpl template.Template) Handler
- func DoYouWantToNotifyPeople(tmpl template.Template, donorStore DonorStore) Handler
- func EnterTrustCorporation(tmpl template.Template, donorStore DonorStore) Handler
- func EnterTrustCorporationAddress(logger Logger, tmpl template.Template, addressClient AddressClient, ...) Handler
- func Guidance(tmpl template.Template) Handler
- func HowDoYouKnowYourCertificateProvider(tmpl template.Template, donorStore DonorStore) Handler
- func HowLongHaveYouKnownCertificateProvider(tmpl template.Template, donorStore DonorStore) Handler
- func HowShouldAttorneysMakeDecisions(tmpl template.Template, donorStore DonorStore) Handler
- func HowShouldReplacementAttorneysMakeDecisions(tmpl template.Template, donorStore DonorStore) Handler
- func HowShouldReplacementAttorneysStepIn(tmpl template.Template, donorStore DonorStore) Handler
- func HowToSendEvidence(tmpl template.Template, payer Payer) Handler
- func HowWouldCertificateProviderPreferToCarryOutTheirRole(tmpl template.Template, donorStore DonorStore) Handler
- func IdentityWithOneLogin(logger Logger, oneLoginClient OneLoginClient, store sesh.Store, ...) Handler
- func IdentityWithOneLoginCallback(tmpl template.Template, oneLoginClient OneLoginClient, ...) Handler
- func IdentityWithTodo(tmpl template.Template, donorStore DonorStore, now func() time.Time, ...) Handler
- func IdentityWithYoti(tmpl template.Template, sessionStore SessionStore, yotiClient YotiClient) Handler
- func IdentityWithYotiCallback(tmpl template.Template, yotiClient YotiClient, donorStore DonorStore) Handler
- func LifeSustainingTreatment(tmpl template.Template, donorStore DonorStore) Handler
- func LpaDetailsSaved(tmpl template.Template) Handler
- func LpaProgress(tmpl template.Template, certificateProviderStore CertificateProviderStore) Handler
- func LpaType(tmpl template.Template, donorStore DonorStore) Handler
- func PaymentConfirmation(logger Logger, tmpl template.Template, payClient PayClient, ...) Handler
- func PreviousApplicationNumber(tmpl template.Template, donorStore DonorStore) Handler
- func ProvideAddressToSendEvidenceForm(logger Logger, tmpl template.Template, addressClient AddressClient, ...) Handler
- func RemoveAttorney(logger Logger, tmpl template.Template, donorStore DonorStore) Handler
- func RemovePersonToNotify(logger Logger, tmpl template.Template, donorStore DonorStore) Handler
- func RemoveReplacementAttorney(logger Logger, tmpl template.Template, donorStore DonorStore) Handler
- func ResendWitnessCode(tmpl template.Template, witnessCodeSender WitnessCodeSender, ...) Handler
- func Restrictions(tmpl template.Template, donorStore DonorStore) Handler
- func SelectYourIdentityOptions(tmpl template.Template, donorStore DonorStore, pageIndex int) Handler
- func SignYourLpa(tmpl template.Template, donorStore DonorStore) Handler
- func TaskList(tmpl template.Template, evidenceReceivedStore EvidenceReceivedStore) Handler
- func UploadEvidence(tmpl template.Template, donorStore DonorStore, s3Client S3Client, ...) Handler
- func WantReplacementAttorneys(tmpl template.Template, donorStore DonorStore) Handler
- func WhenCanTheLpaBeUsed(tmpl template.Template, donorStore DonorStore) Handler
- func WhichFeeTypeAreYouApplyingFor(tmpl template.Template, donorStore DonorStore) Handler
- func WhoIsTheLpaFor(tmpl template.Template, donorStore DonorStore) Handler
- func WitnessingAsCertificateProvider(tmpl template.Template, donorStore DonorStore, shareCodeSender ShareCodeSender, ...) Handler
- func WitnessingYourSignature(tmpl template.Template, witnessCodeSender WitnessCodeSender) Handler
- func YourAddress(logger Logger, tmpl template.Template, addressClient AddressClient, ...) Handler
- func YourChosenIdentityOptions(tmpl template.Template) Handler
- func YourDetails(tmpl template.Template, donorStore DonorStore, sessionStore sessions.Store) Handler
- type Localizer
- type Logger
- type LpaDetailsSavedData
- type NotifyClient
- type OneLoginClient
- type PayClient
- type Payer
- type RequestSigner
- type S3Client
- type SessionStore
- type ShareCodeSender
- type Template
- type UidClient
- type WitnessCodeSender
- type YotiClient
Constants ¶
View Source
const ( None handleOpt = 1 << iota RequireSession CanGoBack )
View Source
const ( WantToSignLpa = "want-to-sign" WantToApplyForLpa = "want-to-apply" )
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register( rootMux *http.ServeMux, logger Logger, tmpls template.Templates, sessionStore SessionStore, donorStore DonorStore, oneLoginClient OneLoginClient, addressClient AddressClient, appPublicURL string, payClient PayClient, yotiClient YotiClient, shareCodeSender ShareCodeSender, witnessCodeSender WitnessCodeSender, errorHandler page.ErrorHandler, notFoundHandler page.Handler, certificateProviderStore CertificateProviderStore, uidClient UidClient, s3Client *s3.Client, evidenceBucketName string, notifyClient NotifyClient, evidenceReceivedStore EvidenceReceivedStore, )
Types ¶
type AddressClient ¶
type CertificateProviderStore ¶
type CertificateProviderStore interface {
GetAny(ctx context.Context) (*actor.CertificateProviderProvidedDetails, error)
}
type DonorStore ¶
type EvidenceReceivedStore ¶
type Handler ¶
type Handler func(data page.AppData, w http.ResponseWriter, r *http.Request, details *page.Lpa) error
func ApplicationReason ¶
func ApplicationReason(tmpl template.Template, donorStore DonorStore) Handler
func AreYouApplyingForADifferentFeeType ¶
func AreYouApplyingForADifferentFeeType(tmpl template.Template, payer Payer, donorStore DonorStore) Handler
func CanEvidenceBeUploaded ¶
func CertificateProviderAddress ¶
func CertificateProviderAddress(logger Logger, tmpl template.Template, addressClient AddressClient, donorStore DonorStore) Handler
func CertificateProviderDetails ¶
func CertificateProviderDetails(tmpl template.Template, donorStore DonorStore) Handler
func CheckYourLpa ¶
func CheckYourLpa(tmpl template.Template, donorStore DonorStore, shareCodeSender ShareCodeSender, notifyClient NotifyClient, certificateProviderStore CertificateProviderStore) Handler
func ChooseAttorneys ¶
func ChooseAttorneys(tmpl template.Template, donorStore DonorStore, uuidString func() string) Handler
func ChooseAttorneysAddress ¶
func ChooseAttorneysAddress(logger Logger, tmpl template.Template, addressClient AddressClient, donorStore DonorStore) Handler
func ChooseAttorneysSummary ¶
func ChoosePeopleToNotify ¶
func ChoosePeopleToNotify(tmpl template.Template, donorStore DonorStore, uuidString func() string) Handler
func ChoosePeopleToNotifyAddress ¶
func ChoosePeopleToNotifyAddress(logger Logger, tmpl template.Template, addressClient AddressClient, donorStore DonorStore) Handler
func ChooseReplacementAttorneys ¶
func ChooseReplacementAttorneys(tmpl template.Template, donorStore DonorStore, uuidString func() string) Handler
func ChooseReplacementAttorneysAddress ¶
func ChooseReplacementAttorneysAddress(logger Logger, tmpl template.Template, addressClient AddressClient, donorStore DonorStore) Handler
func DoYouWantToNotifyPeople ¶
func DoYouWantToNotifyPeople(tmpl template.Template, donorStore DonorStore) Handler
func EnterTrustCorporation ¶
func EnterTrustCorporation(tmpl template.Template, donorStore DonorStore) Handler
func EnterTrustCorporationAddress ¶
func EnterTrustCorporationAddress(logger Logger, tmpl template.Template, addressClient AddressClient, donorStore DonorStore) Handler
func HowDoYouKnowYourCertificateProvider ¶
func HowDoYouKnowYourCertificateProvider(tmpl template.Template, donorStore DonorStore) Handler
func HowLongHaveYouKnownCertificateProvider ¶
func HowLongHaveYouKnownCertificateProvider(tmpl template.Template, donorStore DonorStore) Handler
func HowShouldAttorneysMakeDecisions ¶
func HowShouldAttorneysMakeDecisions(tmpl template.Template, donorStore DonorStore) Handler
func HowShouldReplacementAttorneysMakeDecisions ¶
func HowShouldReplacementAttorneysMakeDecisions(tmpl template.Template, donorStore DonorStore) Handler
func HowShouldReplacementAttorneysStepIn ¶
func HowShouldReplacementAttorneysStepIn(tmpl template.Template, donorStore DonorStore) Handler
func HowWouldCertificateProviderPreferToCarryOutTheirRole ¶
func HowWouldCertificateProviderPreferToCarryOutTheirRole(tmpl template.Template, donorStore DonorStore) Handler
func IdentityWithOneLogin ¶
func IdentityWithOneLoginCallback ¶
func IdentityWithOneLoginCallback(tmpl template.Template, oneLoginClient OneLoginClient, sessionStore sessions.Store, donorStore DonorStore) Handler
func IdentityWithTodo ¶
func IdentityWithYoti ¶
func IdentityWithYoti(tmpl template.Template, sessionStore SessionStore, yotiClient YotiClient) Handler
func IdentityWithYotiCallback ¶
func IdentityWithYotiCallback(tmpl template.Template, yotiClient YotiClient, donorStore DonorStore) Handler
func LifeSustainingTreatment ¶
func LifeSustainingTreatment(tmpl template.Template, donorStore DonorStore) Handler
func LpaDetailsSaved ¶
func LpaProgress ¶
func LpaProgress(tmpl template.Template, certificateProviderStore CertificateProviderStore) Handler
func PaymentConfirmation ¶
func PreviousApplicationNumber ¶
func PreviousApplicationNumber(tmpl template.Template, donorStore DonorStore) Handler
func ProvideAddressToSendEvidenceForm ¶
func ProvideAddressToSendEvidenceForm(logger Logger, tmpl template.Template, addressClient AddressClient, donorStore DonorStore) Handler
func RemoveAttorney ¶
func RemoveAttorney(logger Logger, tmpl template.Template, donorStore DonorStore) Handler
func RemovePersonToNotify ¶
func RemovePersonToNotify(logger Logger, tmpl template.Template, donorStore DonorStore) Handler
func RemoveReplacementAttorney ¶
func RemoveReplacementAttorney(logger Logger, tmpl template.Template, donorStore DonorStore) Handler
func ResendWitnessCode ¶
func Restrictions ¶
func Restrictions(tmpl template.Template, donorStore DonorStore) Handler
func SelectYourIdentityOptions ¶
func SelectYourIdentityOptions(tmpl template.Template, donorStore DonorStore, pageIndex int) Handler
func SignYourLpa ¶
func SignYourLpa(tmpl template.Template, donorStore DonorStore) Handler
func TaskList ¶
func TaskList(tmpl template.Template, evidenceReceivedStore EvidenceReceivedStore) Handler
func UploadEvidence ¶
func WantReplacementAttorneys ¶
func WantReplacementAttorneys(tmpl template.Template, donorStore DonorStore) Handler
func WhenCanTheLpaBeUsed ¶
func WhenCanTheLpaBeUsed(tmpl template.Template, donorStore DonorStore) Handler
func WhichFeeTypeAreYouApplyingFor ¶
func WhichFeeTypeAreYouApplyingFor(tmpl template.Template, donorStore DonorStore) Handler
func WhoIsTheLpaFor ¶
func WhoIsTheLpaFor(tmpl template.Template, donorStore DonorStore) Handler
func WitnessingAsCertificateProvider ¶
func WitnessingAsCertificateProvider(tmpl template.Template, donorStore DonorStore, shareCodeSender ShareCodeSender, now func() time.Time, certificateProviderStore CertificateProviderStore) Handler
func WitnessingYourSignature ¶
func WitnessingYourSignature(tmpl template.Template, witnessCodeSender WitnessCodeSender) Handler
func YourAddress ¶
func YourAddress(logger Logger, tmpl template.Template, addressClient AddressClient, donorStore DonorStore) Handler
func YourDetails ¶
type Localizer ¶
type Localizer interface { Format(string, map[string]any) string T(string) string Count(messageID string, count int) string FormatCount(messageID string, count int, data map[string]interface{}) string ShowTranslationKeys() bool SetShowTranslationKeys(s bool) Possessive(s string) string Concat([]string, string) string }
type LpaDetailsSavedData ¶
type NotifyClient ¶
type OneLoginClient ¶
type OneLoginClient interface { AuthCodeURL(state, nonce, locale string, identity bool) string Exchange(ctx context.Context, code, nonce string) (idToken, accessToken string, err error) UserInfo(ctx context.Context, accessToken string) (onelogin.UserInfo, error) ParseIdentityClaim(ctx context.Context, userInfo onelogin.UserInfo) (identity.UserData, error) }
type PayClient ¶
type PayClient interface { CreatePayment(body pay.CreatePaymentBody) (pay.CreatePaymentResponse, error) GetPayment(paymentId string) (pay.GetPaymentResponse, error) }
type RequestSigner ¶
type S3Client ¶
type S3Client interface {
PutObject(context.Context, *s3.PutObjectInput, ...func(*s3.Options)) (*s3.PutObjectOutput, error)
}
type SessionStore ¶
type ShareCodeSender ¶
type ShareCodeSender interface {}
type UidClient ¶
type UidClient interface {
CreateCase(context.Context, *uid.CreateCaseRequestBody) (uid.CreateCaseResponse, error)
}
type WitnessCodeSender ¶
Source Files ¶
- application_reason.go
- are_you_applying_for_a_different_fee_type.go
- can_evidence_be_uploaded.go
- certificate_provider_address.go
- certificate_provider_details.go
- check_your_lpa.go
- choose_address.go
- choose_attorneys.go
- choose_attorneys_address.go
- choose_attorneys_summary.go
- choose_people_to_notify.go
- choose_people_to_notify_address.go
- choose_people_to_notify_summary.go
- choose_replacement_attorneys.go
- choose_replacement_attorneys_address.go
- choose_replacement_attorneys_summary.go
- do_you_want_to_notify_people.go
- enter_trust_corporation.go
- enter_trust_corporation_address.go
- guidance.go
- how_do_you_know_your_certificate_provider.go
- how_long_have_you_known_certificate_provider.go
- how_should_attorneys_make_decisions.go
- how_should_replacement_attorneys_make_decisions.go
- how_should_replacement_attorneys_step_in.go
- how_to_send_evidence.go
- how_would_certificate_provider_prefer_to_carry_out_their_role.go
- identity_with_one_login.go
- identity_with_one_login_callback.go
- identity_with_todo.go
- identity_with_yoti.go
- identity_with_yoti_callback.go
- life_sustaining_treatment.go
- lpa_details_saved.go
- lpa_progress.go
- lpa_type.go
- payment_confirmation.go
- previous_application_number.go
- provide_address_to_send_evidence_form.go
- register.go
- remove_attorney.go
- remove_person_to_notify.go
- remove_replacement_attorney.go
- resend_witness_code.go
- restrictions.go
- select_your_identity_options.go
- sign_your_lpa.go
- task_list.go
- upload_evidence.go
- want_replacement_attorneys.go
- when_can_the_lpa_be_used.go
- which_fee_type_are_you_applying_for.go
- who_is_the_lpa_for.go
- witnessing_as_certificate_provider.go
- witnessing_your_signature.go
- your_address.go
- your_chosen_identity_options.go
- your_details.go
Click to show internal directories.
Click to hide internal directories.