Documentation ¶
Index ¶
- Constants
- func Register(rootMux *http.ServeMux, logger Logger, tmpls template.Templates, ...)
- type AddressClient
- type AttorneyStore
- type CertificateProviderStore
- type DashboardStore
- type DocumentStore
- type DonorStore
- type EventClient
- type EvidenceReceivedStore
- type File
- type GetDonorStore
- type Handler
- func AreYouApplyingForFeeDiscountOrExemption(tmpl template.Template, payer Payer, donorStore DonorStore) Handler
- func CertificateProviderAddress(logger Logger, tmpl template.Template, addressClient AddressClient, ...) Handler
- func CertificateProviderDetails(tmpl template.Template, donorStore DonorStore) Handler
- func ChangeMobileNumber(tmpl template.Template, witnessCodeSender WitnessCodeSender, ...) Handler
- func CheckYouCanSign(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 ChooseNewCertificateProvider(tmpl template.Template, donorStore DonorStore) 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 ConfirmYourCertificateProviderIsNotRelated(tmpl template.Template, donorStore DonorStore) Handler
- func DeleteLpa(tmpl template.Template, donorStore DonorStore) Handler
- func DoYouWantToNotifyPeople(tmpl template.Template, donorStore DonorStore) Handler
- func EnterReplacementTrustCorporation(tmpl template.Template, donorStore DonorStore) Handler
- func EnterReplacementTrustCorporationAddress(logger Logger, tmpl template.Template, addressClient AddressClient, ...) Handler
- func EnterTrustCorporation(tmpl template.Template, donorStore DonorStore) Handler
- func EnterTrustCorporationAddress(logger Logger, tmpl template.Template, addressClient AddressClient, ...) Handler
- func FeeDenied(tmpl template.Template, payer Payer) 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 HowWouldCertificateProviderPreferToCarryOutTheirRole(tmpl template.Template, donorStore DonorStore) Handler
- func HowWouldYouLikeToSendEvidence(tmpl template.Template, donorStore DonorStore) Handler
- func IdentityWithOneLogin(oneLoginClient OneLoginClient, store sesh.Store, randomString func(int) string) Handler
- func IdentityWithOneLoginCallback(tmpl template.Template, oneLoginClient OneLoginClient, ...) 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 PreviousFee(tmpl template.Template, payer Payer, donorStore DonorStore) 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 RemoveTrustCorporation(tmpl template.Template, donorStore DonorStore, isReplacement bool) Handler
- func ResendWitnessCode(tmpl template.Template, witnessCodeSender WitnessCodeSender, ...) Handler
- func Restrictions(tmpl template.Template, donorStore DonorStore) Handler
- func SendUsYourEvidenceByPost(tmpl template.Template, payer Payer, eventClient EventClient) Handler
- func SignYourLpa(tmpl template.Template, donorStore DonorStore) Handler
- func TaskList(tmpl template.Template, evidenceReceivedStore EvidenceReceivedStore) Handler
- func UploadEvidence(tmpl template.Template, logger Logger, payer Payer, ...) Handler
- func UploadEvidenceSSE(documentStore DocumentStore, ttl time.Duration, flushFrequency time.Duration, ...) 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 WithdrawLpa(tmpl template.Template, donorStore DonorStore, now func() time.Time) Handler
- func WitnessingAsCertificateProvider(tmpl template.Template, donorStore DonorStore, shareCodeSender ShareCodeSender, ...) Handler
- func WitnessingAsIndependentWitness(tmpl template.Template, donorStore DonorStore, now func() time.Time) Handler
- func WitnessingYourSignature(tmpl template.Template, witnessCodeSender WitnessCodeSender, ...) Handler
- func YouCannotSignYourLpaYet(tmpl template.Template) Handler
- func YourAddress(logger Logger, tmpl template.Template, addressClient AddressClient, ...) Handler
- func YourAuthorisedSignatory(tmpl template.Template, donorStore DonorStore) Handler
- func YourDetails(tmpl template.Template, donorStore DonorStore, sessionStore sessions.Store) Handler
- func YourIndependentWitness(tmpl template.Template, donorStore DonorStore) Handler
- func YourIndependentWitnessAddress(logger Logger, tmpl template.Template, addressClient AddressClient, ...) Handler
- func YourIndependentWitnessMobile(tmpl template.Template, donorStore DonorStore) Handler
- func YourPreferredLanguage(tmpl template.Template, donorStore DonorStore) Handler
- type Localizer
- type Logger
- type LpaDetailsSavedData
- type LpaStoreClient
- type NotifyClient
- type OneLoginClient
- type PayClient
- type Payer
- type RequestSigner
- type S3Client
- type SessionStore
- type ShareCodeSender
- type Template
- type UidClient
- type WitnessCodeSender
Constants ¶
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, shareCodeSender ShareCodeSender, witnessCodeSender WitnessCodeSender, errorHandler page.ErrorHandler, notFoundHandler page.Handler, certificateProviderStore CertificateProviderStore, attorneyStore AttorneyStore, notifyClient NotifyClient, evidenceReceivedStore EvidenceReceivedStore, documentStore DocumentStore, eventClient EventClient, dashboardStore DashboardStore, lpaStoreClient LpaStoreClient, )
Types ¶
type AddressClient ¶
type AttorneyStore ¶ added in v0.742.0
type AttorneyStore interface {
GetAny(ctx context.Context) ([]*actor.AttorneyProvidedDetails, error)
}
type CertificateProviderStore ¶
type CertificateProviderStore interface {
GetAny(ctx context.Context) (*actor.CertificateProviderProvidedDetails, error)
}
type DashboardStore ¶ added in v0.899.0
type DocumentStore ¶ added in v0.794.0
type DocumentStore interface { GetAll(context.Context) (page.Documents, error) Put(context.Context, page.Document) error Delete(context.Context, page.Document) error DeleteInfectedDocuments(context.Context, page.Documents) error Create(context.Context, *actor.DonorProvidedDetails, string, []byte) (page.Document, error) Submit(context.Context, *actor.DonorProvidedDetails, page.Documents) error }
type DonorStore ¶
type EventClient ¶ added in v0.813.0
type EventClient interface {
SendReducedFeeRequested(context.Context, event.ReducedFeeRequested) error
}
type EvidenceReceivedStore ¶
type GetDonorStore ¶
type GetDonorStore interface {
Get(context.Context) (*actor.DonorProvidedDetails, error)
}
type Handler ¶
type Handler func(data page.AppData, w http.ResponseWriter, r *http.Request, donor *actor.DonorProvidedDetails) error
func AreYouApplyingForFeeDiscountOrExemption ¶ added in v0.747.0
func AreYouApplyingForFeeDiscountOrExemption(tmpl template.Template, payer Payer, donorStore DonorStore) Handler
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 ChangeMobileNumber ¶ added in v0.755.0
func CheckYouCanSign ¶ added in v0.681.0
func CheckYouCanSign(tmpl template.Template, donorStore DonorStore) Handler
func CheckYourLpa ¶
func CheckYourLpa(tmpl template.Template, donorStore DonorStore, shareCodeSender ShareCodeSender, notifyClient NotifyClient, certificateProviderStore CertificateProviderStore, now func() time.Time) 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 ChooseNewCertificateProvider ¶ added in v0.732.0
func ChooseNewCertificateProvider(tmpl template.Template, donorStore DonorStore) Handler
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 ConfirmYourCertificateProviderIsNotRelated ¶ added in v0.773.0
func ConfirmYourCertificateProviderIsNotRelated(tmpl template.Template, donorStore DonorStore) Handler
func DeleteLpa ¶ added in v0.785.0
func DeleteLpa(tmpl template.Template, donorStore DonorStore) Handler
func DoYouWantToNotifyPeople ¶
func DoYouWantToNotifyPeople(tmpl template.Template, donorStore DonorStore) Handler
func EnterReplacementTrustCorporation ¶ added in v0.651.0
func EnterReplacementTrustCorporation(tmpl template.Template, donorStore DonorStore) Handler
func EnterReplacementTrustCorporationAddress ¶ added in v0.651.0
func EnterReplacementTrustCorporationAddress(logger Logger, tmpl template.Template, addressClient AddressClient, 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 HowWouldYouLikeToSendEvidence ¶ added in v0.747.0
func HowWouldYouLikeToSendEvidence(tmpl template.Template, donorStore DonorStore) Handler
func IdentityWithOneLogin ¶
func IdentityWithOneLoginCallback ¶
func IdentityWithOneLoginCallback(tmpl template.Template, oneLoginClient OneLoginClient, sessionStore sessions.Store, donorStore DonorStore) Handler
func LifeSustainingTreatment ¶
func LifeSustainingTreatment(tmpl template.Template, donorStore DonorStore) Handler
func LpaDetailsSaved ¶
func LpaProgress ¶
func LpaProgress(tmpl template.Template, certificateProviderStore CertificateProviderStore, attorneyStore AttorneyStore) Handler
func PaymentConfirmation ¶
func PreviousApplicationNumber ¶
func PreviousApplicationNumber(tmpl template.Template, donorStore DonorStore) Handler
func PreviousFee ¶ added in v0.791.0
func PreviousFee(tmpl template.Template, payer Payer, 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 RemoveTrustCorporation ¶ added in v0.820.0
func RemoveTrustCorporation(tmpl template.Template, donorStore DonorStore, isReplacement bool) Handler
func ResendWitnessCode ¶
func Restrictions ¶
func Restrictions(tmpl template.Template, donorStore DonorStore) Handler
func SendUsYourEvidenceByPost ¶ added in v0.795.0
func SendUsYourEvidenceByPost(tmpl template.Template, payer Payer, eventClient EventClient) Handler
func SignYourLpa ¶
func SignYourLpa(tmpl template.Template, donorStore DonorStore) Handler
func TaskList ¶
func TaskList(tmpl template.Template, evidenceReceivedStore EvidenceReceivedStore) Handler
func UploadEvidence ¶
func UploadEvidenceSSE ¶ added in v0.794.0
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 WithdrawLpa ¶ added in v0.785.0
func WitnessingAsCertificateProvider ¶
func WitnessingAsCertificateProvider( tmpl template.Template, donorStore DonorStore, shareCodeSender ShareCodeSender, lpaStoreClient LpaStoreClient, now func() time.Time, ) Handler
func WitnessingAsIndependentWitness ¶ added in v0.691.0
func WitnessingYourSignature ¶
func WitnessingYourSignature(tmpl template.Template, witnessCodeSender WitnessCodeSender, donorStore DonorStore) Handler
func YouCannotSignYourLpaYet ¶ added in v0.910.0
func YourAddress ¶
func YourAddress(logger Logger, tmpl template.Template, addressClient AddressClient, donorStore DonorStore) Handler
func YourAuthorisedSignatory ¶ added in v0.686.0
func YourAuthorisedSignatory(tmpl template.Template, donorStore DonorStore) Handler
func YourDetails ¶
func YourIndependentWitness ¶ added in v0.686.0
func YourIndependentWitness(tmpl template.Template, donorStore DonorStore) Handler
func YourIndependentWitnessAddress ¶ added in v0.686.0
func YourIndependentWitnessAddress(logger Logger, tmpl template.Template, addressClient AddressClient, donorStore DonorStore) Handler
func YourIndependentWitnessMobile ¶ added in v0.686.0
func YourIndependentWitnessMobile(tmpl template.Template, donorStore DonorStore) Handler
func YourPreferredLanguage ¶ added in v0.884.0
func YourPreferredLanguage(tmpl template.Template, donorStore DonorStore) Handler
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 FormatDate(date.TimeOrDate) string FormatDateTime(time.Time) string }
type LpaDetailsSavedData ¶
type LpaDetailsSavedData struct { App page.AppData Donor *actor.DonorProvidedDetails IsFirstCheck bool Errors validation.List }
type LpaStoreClient ¶ added in v0.901.0
type LpaStoreClient interface {
SendLpa(context.Context, *actor.DonorProvidedDetails) error
}
type NotifyClient ¶
type OneLoginClient ¶
type OneLoginClient interface { AuthCodeURL(state, nonce, locale string, identity bool) (string, error) 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 Payer ¶
type Payer interface {
Pay(page.AppData, http.ResponseWriter, *http.Request, *actor.DonorProvidedDetails) error
}
type RequestSigner ¶
type SessionStore ¶
type ShareCodeSender ¶
type ShareCodeSender interface {}
type UidClient ¶
type UidClient interface {
CreateCase(context.Context, *uid.CreateCaseRequestBody) (uid.CreateCaseResponse, error)
}
Source Files ¶
- are_you_applying_for_fee_discount_or_exemption.go
- certificate_provider_address.go
- certificate_provider_details.go
- change_mobile_number.go
- check_you_can_sign.go
- check_your_lpa.go
- choose_a_new_certificate_provider.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
- confirm_your_certificate_provider_is_not_related.go
- delete_lpa.go
- do_you_want_to_notify_people.go
- enter_replacement_trust_corporation.go
- enter_replacement_trust_corporation_address.go
- enter_trust_corporation.go
- enter_trust_corporation_address.go
- fee_denied.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_would_certificate_provider_prefer_to_carry_out_their_role.go
- how_would_you_like_to_send_evidence.go
- identity_with_one_login.go
- identity_with_one_login_callback.go
- life_sustaining_treatment.go
- lpa_details_saved.go
- lpa_progress.go
- lpa_type.go
- payment_confirmation.go
- previous_application_number.go
- previous_fee.go
- register.go
- remove_attorney.go
- remove_person_to_notify.go
- remove_replacement_attorney.go
- remove_trust_corporation.go
- resend_witness_code.go
- restrictions.go
- send_us_your_evidence_by_post.go
- sign_your_lpa.go
- task_list.go
- upload_evidence.go
- upload_evidence_sse.go
- want_replacement_attorneys.go
- when_can_the_lpa_be_used.go
- which_fee_type_are_you_applying_for.go
- withdraw_lpa.go
- witnessing_as_certificate_provider.go
- witnessing_as_independent_witness.go
- witnessing_your_signature.go
- you_cannot_sign_your_lpa_yet.go
- your_address.go
- your_authorised_signatory.go
- your_details.go
- your_independent_witness.go
- your_independent_witness_address.go
- your_independent_witness_mobile.go
- your_preferred_language.go
Click to show internal directories.
Click to hide internal directories.