Documentation
¶
Overview ¶
Package page contains the core code and business logic of Make and Register a Lasting Power of Attorney (MRLPA)
Useful links:
- page.Lpa - details about the LPA being drafted
- actor.Donor - details about the donor, provided by the applicant
- actor.CertificateProvider - details about the certificate provider, provided by the applicant
- actor.CertificateProviderProvidedDetails - details about the certificate provider, provided by the certificate provider
- actor.Attorney - details about an attorney or replacement attorney, provided by the applicant
- actor.AttorneyDecisions - details about how an attorney or replacement attorney should act, provided by the applicant
- actor.AttorneyProvidedDetails - details about an attorney or replacement attorney, provided by the attorney or replacement attorney
- actor.PersonToNotify - details about a person to notify, provided by the applicant
Code generated by "enumerator -type CanBeUsedWhen -linecomment -trimprefix -empty"; DO NOT EDIT.
Code generated by "enumerator -type LifeSustainingTreatment -linecomment -trimprefix -empty"; DO NOT EDIT.
Code generated by "enumerator -type LpaType -linecomment -trimprefix -empty"; DO NOT EDIT.
Code generated by "enumerator -type ReplacementAttorneysStepIn -linecomment -trimprefix -empty"; DO NOT EDIT.
Modified from io/multi.go which carries the following licence:
Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Index ¶
- Constants
- Variables
- func AuthRedirect(logger Logger, store sesh.Store) http.HandlerFunc
- func CacheControlHeaders(h http.Handler) http.Handler
- func ChooseAttorneysState(attorneys actor.Attorneys, decisions actor.AttorneyDecisions) actor.TaskState
- func ChooseReplacementAttorneysState(lpa *Lpa) actor.TaskState
- func ContextWithAppData(ctx context.Context, appData AppData) context.Context
- func ContextWithSessionData(ctx context.Context, data *SessionData) context.Context
- func CookieConsent(paths AppPaths) http.HandlerFunc
- func DependencyHealthCheck(logger Logger, uidClient UidClient) http.HandlerFunc
- func MultiReadCloser(readClosers ...io.ReadCloser) io.ReadCloser
- func PostFormReferenceNumber(r *http.Request, name string) string
- func PostFormString(r *http.Request, name string) string
- func Recover(tmpl template.Template, logger Logger, bundle Bundle, next http.Handler) http.HandlerFunc
- func RouteToPrefix(prefix string, mux http.Handler, notFoundHandler Handler) http.HandlerFunc
- func ValidateCsrf(next http.Handler, store sessions.Store, randomString func(int) string, ...) http.HandlerFunc
- type AddressDetail
- type AppData
- func (d AppData) BuildUrl(url string) string
- func (d AppData) IsCertificateProvider() bool
- func (d AppData) IsDonor() bool
- func (d AppData) IsReplacementAttorney() bool
- func (d AppData) IsTrustCorporation() bool
- func (d AppData) Redirect(w http.ResponseWriter, r *http.Request, lpa *Lpa, url string) error
- type AppPaths
- type AttorneyPath
- type AttorneyPaths
- type Bundle
- type CanBeUsedWhen
- type CanBeUsedWhenOptions
- type CertificateProviderPath
- type CertificateProviderPaths
- type DashboardStore
- type Document
- type Documents
- func (ds *Documents) Delete(documentKey string) bool
- func (ds *Documents) Filenames() []string
- func (ds *Documents) Get(documentKey string) Document
- func (ds *Documents) InfectedFilenames() []string
- func (ds *Documents) Keys() []string
- func (ds *Documents) NotScanned() Documents
- func (ds *Documents) Put(scannedDocument Document)
- func (ds *Documents) Scanned() Documents
- type DonorStore
- type ErrorHandler
- type Handler
- func Dashboard(tmpl template.Template, donorStore DonorStore, dashboardStore DashboardStore) Handler
- func Guidance(tmpl template.Template) Handler
- func Login(logger LoginLogger, oneLoginClient LoginOneLoginClient, store sesh.Store, ...) Handler
- func LoginCallback(oneLoginClient LoginCallbackOneLoginClient, sessionStore sesh.Store, ...) Handler
- func Root(tmpl template.Template, logger Logger) Handler
- func SignOut(logger Logger, sessionStore sesh.Store, oneLoginClient OneLoginClient, ...) Handler
- type HealthCheckPaths
- type LifeSustainingTreatment
- type LifeSustainingTreatmentOptions
- type Limiter
- type Localizer
- type Logger
- type LoginCallbackOneLoginClient
- type LoginLogger
- type LoginOneLoginClient
- type Lpa
- func (l *Lpa) ActorAddresses() []place.Address
- func (l *Lpa) AllAttorneysSigned(attorneys []*actor.AttorneyProvidedDetails) bool
- func (l *Lpa) AllLayAttorneysFirstNames() []string
- func (l *Lpa) AllLayAttorneysFullNames() []string
- func (l *Lpa) AttorneysAndCpSigningDeadline() time.Time
- func (l *Lpa) CanGoTo(url string) bool
- func (l *Lpa) CertificateProviderSharesDetails() bool
- func (l *Lpa) Cost() int
- func (l *Lpa) DonorIdentityConfirmed() bool
- func (l *Lpa) FeeAmount() int
- func (l *Lpa) Progress(certificateProvider *actor.CertificateProviderProvidedDetails, ...) Progress
- func (l *Lpa) TrustCorporationsNames() []string
- type LpaAndActorTasks
- type LpaPath
- type LpaType
- type LpaTypeOptions
- type NotifyClient
- type OneLoginClient
- type Path
- type Payment
- type Progress
- type ReplacementAttorneysStepIn
- type ReplacementAttorneysStepInOptions
- type RumConfig
- type SessionData
- type SessionMissingError
- type SessionStore
- type ShareCodeSender
- type ShareCodeStore
- type Tasks
- type Template
- type UidClient
- type WitnessCode
- type WitnessCodeSender
- type WitnessCodes
Constants ¶
const FormUrlEncoded = "application/x-www-form-urlencoded"
Variables ¶
var CanBeUsedWhenValues = CanBeUsedWhenOptions{ CapacityLost: CanBeUsedWhenCapacityLost, HasCapacity: CanBeUsedWhenHasCapacity, }
var ErrCsrfInvalid = errors.New("CSRF token not valid")
var ErrTooManyWitnessCodeRequests = errors.New("too many witness code requests")
var LifeSustainingTreatmentValues = LifeSustainingTreatmentOptions{ OptionA: LifeSustainingTreatmentOptionA, OptionB: LifeSustainingTreatmentOptionB, }
var LpaTypeValues = LpaTypeOptions{ HealthWelfare: LpaTypeHealthWelfare, PropertyFinance: LpaTypePropertyFinance, }
var Paths = AppPaths{}/* 103 elements not displayed */
var ReplacementAttorneysStepInValues = ReplacementAttorneysStepInOptions{ WhenAllCanNoLongerAct: ReplacementAttorneysStepInWhenAllCanNoLongerAct, WhenOneCanNoLongerAct: ReplacementAttorneysStepInWhenOneCanNoLongerAct, AnotherWay: ReplacementAttorneysStepInAnotherWay, }
Functions ¶
func AuthRedirect ¶
func AuthRedirect(logger Logger, store sesh.Store) http.HandlerFunc
func ChooseAttorneysState ¶
func ContextWithAppData ¶
func ContextWithSessionData ¶
func ContextWithSessionData(ctx context.Context, data *SessionData) context.Context
func CookieConsent ¶
func CookieConsent(paths AppPaths) http.HandlerFunc
func DependencyHealthCheck ¶
func DependencyHealthCheck(logger Logger, uidClient UidClient) http.HandlerFunc
func MultiReadCloser ¶
func MultiReadCloser(readClosers ...io.ReadCloser) io.ReadCloser
MultiReadCloser returns a io.ReadCloser that's the logical concatenation of the provided input readClosers. They're read sequentially. Once all inputs have returned EOF, Read will return EOF. If any of the readClosers return a non-nil, non-EOF error, Read will return that error.
func RouteToPrefix ¶
func ValidateCsrf ¶
func ValidateCsrf(next http.Handler, store sessions.Store, randomString func(int) string, errorHandler ErrorHandler) http.HandlerFunc
Types ¶
type AddressDetail ¶
type AppData ¶
type AppData struct { Page string Path string Query string Localizer Localizer Lang localize.Lang CookieConsentSet bool CanGoBack bool SessionID string RumConfig RumConfig StaticHash string Paths AppPaths LpaID string CsrfToken string ActorTypes actor.Types ActorType actor.Type AttorneyID string OneloginURL string }
func AppDataFromContext ¶
func (AppData) IsCertificateProvider ¶
func (AppData) IsReplacementAttorney ¶
func (AppData) IsTrustCorporation ¶
type AppPaths ¶
type AppPaths struct { Attorney AttorneyPaths CertificateProvider CertificateProviderPaths HealthCheck HealthCheckPaths AttorneyFixtures Path AuthRedirect Path CertificateProviderFixtures Path CertificateProviderStart Path CookiesConsent Path Dashboard Path DashboardFixtures Path Fixtures Path Login Path LoginCallback Path LpaDeleted Path LpaWithdrawn Path Root Path SignOut Path Start Path YourLegalRightsAndResponsibilities Path AboutPayment LpaPath AreYouApplyingForFeeDiscountOrExemption LpaPath CertificateProviderAddress LpaPath CertificateProviderDetails LpaPath CertificateProviderOptOut LpaPath ChangeCertificateProviderMobileNumber LpaPath ChangeIndependentWitnessMobileNumber LpaPath CheckYouCanSign LpaPath CheckYourLpa LpaPath ChooseAttorneys LpaPath ChooseAttorneysAddress LpaPath ChooseAttorneysGuidance LpaPath ChooseAttorneysSummary LpaPath ChooseNewCertificateProvider LpaPath ChoosePeopleToNotify LpaPath ChoosePeopleToNotifyAddress LpaPath ChoosePeopleToNotifySummary LpaPath ChooseReplacementAttorneys LpaPath ChooseReplacementAttorneysAddress LpaPath ChooseReplacementAttorneysSummary LpaPath ChooseYourCertificateProvider LpaPath ConfirmYourCertificateProviderIsNotRelated LpaPath DeleteThisLpa LpaPath DoYouWantReplacementAttorneys LpaPath DoYouWantToNotifyPeople LpaPath EnterReplacementTrustCorporation LpaPath EnterReplacementTrustCorporationAddress LpaPath EnterTrustCorporation LpaPath EnterTrustCorporationAddress LpaPath EvidenceRequired LpaPath EvidenceSuccessfullyUploaded LpaPath FeeDenied LpaPath GettingHelpSigning LpaPath HowDoYouKnowYourCertificateProvider LpaPath HowLongHaveYouKnownCertificateProvider LpaPath HowShouldAttorneysMakeDecisions LpaPath HowShouldReplacementAttorneysMakeDecisions LpaPath HowShouldReplacementAttorneysStepIn LpaPath HowToConfirmYourIdentityAndSign LpaPath HowToSendEvidence LpaPath HowWouldCertificateProviderPreferToCarryOutTheirRole LpaPath HowWouldYouLikeToSendEvidence LpaPath IdentityConfirmed LpaPath IdentityWithOneLogin LpaPath IdentityWithOneLoginCallback LpaPath LifeSustainingTreatment LpaPath LpaDetailsSaved LpaPath LpaType LpaPath LpaYourLegalRightsAndResponsibilities LpaPath NeedHelpSigningConfirmation LpaPath PaymentConfirmation LpaPath PreviousApplicationNumber LpaPath PreviousFee LpaPath Progress LpaPath ProveYourIdentity LpaPath ReadYourLpa LpaPath RemoveAttorney LpaPath RemovePersonToNotify LpaPath RemoveReplacementAttorney LpaPath ResendCertificateProviderCode LpaPath ResendIndependentWitnessCode LpaPath Restrictions LpaPath SendUsYourEvidenceByPost LpaPath SignTheLpaOnBehalf LpaPath SignYourLpa LpaPath TaskList LpaPath UploadEvidence LpaPath UploadEvidenceSSE LpaPath UseExistingAddress LpaPath WhatACertificateProviderDoes LpaPath WhatHappensNextPostEvidence LpaPath WhenCanTheLpaBeUsed LpaPath WhichFeeTypeAreYouApplyingFor LpaPath WithdrawThisLpa LpaPath WitnessingAsCertificateProvider LpaPath WitnessingAsIndependentWitness LpaPath WitnessingYourSignature LpaPath YouHaveSubmittedYourLpa LpaPath YourAddress LpaPath YourAuthorisedSignatory LpaPath YourDetails LpaPath YourIndependentWitness LpaPath YourIndependentWitnessAddress LpaPath YourIndependentWitnessMobile LpaPath }
type AttorneyPath ¶
type AttorneyPath string
func (AttorneyPath) Format ¶
func (p AttorneyPath) Format(id string) string
func (AttorneyPath) String ¶
func (p AttorneyPath) String() string
type AttorneyPaths ¶
type AttorneyPaths struct { EnterReferenceNumber Path Login Path LoginCallback Path Start Path CodeOfConduct AttorneyPath ConfirmYourDetails AttorneyPath MobileNumber AttorneyPath Progress AttorneyPath ReadTheLpa AttorneyPath RightsAndResponsibilities AttorneyPath Sign AttorneyPath TaskList AttorneyPath WhatHappensNext AttorneyPath WhatHappensWhenYouSign AttorneyPath WouldLikeSecondSignatory AttorneyPath }
type CanBeUsedWhen ¶
type CanBeUsedWhen uint8
const ( CanBeUsedWhenCapacityLost CanBeUsedWhen = iota + 1 // when-capacity-lost CanBeUsedWhenHasCapacity // when-has-capacity )
func ParseCanBeUsedWhen ¶
func ParseCanBeUsedWhen(s string) (CanBeUsedWhen, error)
func (CanBeUsedWhen) Empty ¶
func (i CanBeUsedWhen) Empty() bool
func (CanBeUsedWhen) IsCapacityLost ¶
func (i CanBeUsedWhen) IsCapacityLost() bool
func (CanBeUsedWhen) IsHasCapacity ¶
func (i CanBeUsedWhen) IsHasCapacity() bool
func (CanBeUsedWhen) String ¶
func (i CanBeUsedWhen) String() string
type CanBeUsedWhenOptions ¶
type CanBeUsedWhenOptions struct { CapacityLost CanBeUsedWhen HasCapacity CanBeUsedWhen }
type CertificateProviderPath ¶
type CertificateProviderPath string
func (CertificateProviderPath) Format ¶
func (p CertificateProviderPath) Format(id string) string
func (CertificateProviderPath) String ¶
func (p CertificateProviderPath) String() string
type CertificateProviderPaths ¶
type CertificateProviderPaths struct { Login Path LoginCallback Path EnterReferenceNumber Path CertificateProvided CertificateProviderPath ConfirmYourDetails CertificateProviderPath EnterDateOfBirth CertificateProviderPath IdentityWithOneLogin CertificateProviderPath IdentityWithOneLoginCallback CertificateProviderPath ProveYourIdentity CertificateProviderPath ProvideCertificate CertificateProviderPath ReadTheLpa CertificateProviderPath TaskList CertificateProviderPath WhatHappensNext CertificateProviderPath WhoIsEligible CertificateProviderPath YourRole CertificateProviderPath }
type DashboardStore ¶
type DashboardStore interface {
GetAll(ctx context.Context) (donor, attorney, certificateProvider []LpaAndActorTasks, err error)
}
type Documents ¶ added in v0.794.0
type Documents []Document
func (*Documents) InfectedFilenames ¶ added in v0.794.0
func (*Documents) NotScanned ¶ added in v0.794.0
type DonorStore ¶
type ErrorHandler ¶
type ErrorHandler func(http.ResponseWriter, *http.Request, error)
type Handler ¶
func Dashboard ¶
func Dashboard(tmpl template.Template, donorStore DonorStore, dashboardStore DashboardStore) Handler
func Login ¶
func Login(logger LoginLogger, oneLoginClient LoginOneLoginClient, store sesh.Store, randomString func(int) string, redirect Path) Handler
func LoginCallback ¶
func LoginCallback(oneLoginClient LoginCallbackOneLoginClient, sessionStore sesh.Store, redirect Path) Handler
type HealthCheckPaths ¶
type LifeSustainingTreatment ¶
type LifeSustainingTreatment uint8
const ( LifeSustainingTreatmentOptionA LifeSustainingTreatment = iota + 1 // option-a LifeSustainingTreatmentOptionB // option-b )
func ParseLifeSustainingTreatment ¶
func ParseLifeSustainingTreatment(s string) (LifeSustainingTreatment, error)
func (LifeSustainingTreatment) Empty ¶
func (i LifeSustainingTreatment) Empty() bool
func (LifeSustainingTreatment) IsOptionA ¶
func (i LifeSustainingTreatment) IsOptionA() bool
func (LifeSustainingTreatment) IsOptionB ¶
func (i LifeSustainingTreatment) IsOptionB() bool
func (LifeSustainingTreatment) String ¶
func (i LifeSustainingTreatment) String() string
type LifeSustainingTreatmentOptions ¶
type LifeSustainingTreatmentOptions struct { OptionA LifeSustainingTreatment OptionB LifeSustainingTreatment }
type Limiter ¶
type Limiter struct { TokenPer time.Duration MaxTokens float64 Tokens float64 TokensAt time.Time // contains filtered or unexported fields }
Limiter is a basic rate limiter that can be serialised.
func NewLimiter ¶
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 LoginLogger ¶
type LoginLogger interface {
Print(v ...interface{})
}
type LoginOneLoginClient ¶
type Lpa ¶
type Lpa struct {
PK, SK string
// Identifies the LPA being drafted
ID string
// A unique identifier created after sending basic LPA details to the UID service
UID string `dynamodbav:",omitempty"`
// CreatedAt is when the LPA was created
CreatedAt time.Time
// UpdatedAt is when the LPA was last updated
UpdatedAt time.Time
// The donor the LPA relates to
Donor actor.Donor
// Attorneys named in the LPA
Attorneys actor.Attorneys
// Information on how the applicant wishes their attorneys to act
AttorneyDecisions actor.AttorneyDecisions
// The certificate provider named in the LPA
CertificateProvider actor.CertificateProvider
// Type of LPA being drafted
Type LpaType
// Whether the applicant wants to add replacement attorneys
WantReplacementAttorneys form.YesNo
// When the LPA can be used
WhenCanTheLpaBeUsed CanBeUsedWhen
// Preferences on life sustaining treatment (applicable to personal welfare LPAs only)
LifeSustainingTreatmentOption LifeSustainingTreatment
// Restrictions on attorneys actions
Restrictions string
// Used to show the task list
Tasks Tasks
// Whether the applicant has checked the LPA and is happy to share the LPA with the certificate provider
CheckedAndHappy bool
// PaymentDetails are records of payments made for the LPA via GOV.UK Pay
PaymentDetails []Payment
// Information returned by the identity service related to the applicant
DonorIdentityUserData identity.UserData
// Replacement attorneys named in the LPA
ReplacementAttorneys actor.Attorneys
// Information on how the applicant wishes their replacement attorneys to act
ReplacementAttorneyDecisions actor.AttorneyDecisions
// How to bring in replacement attorneys, if set
HowShouldReplacementAttorneysStepIn ReplacementAttorneysStepIn
// Details on how replacement attorneys must step in if HowShouldReplacementAttorneysStepIn is set to "other"
HowShouldReplacementAttorneysStepInDetails string
// Whether the applicant wants to notify people about the application
DoYouWantToNotifyPeople form.YesNo
// People to notify about the application
PeopleToNotify actor.PeopleToNotify
// The AuthorisedSignatory signs on the donor's behalf if they are unable to sign
AuthorisedSignatory actor.AuthorisedSignatory
// The IndependentWitness acts as an additional witness when the LPA is signed
IndependentWitness actor.IndependentWitness
// Confirmation that the applicant wants to apply to register the LPA
WantToApplyForLpa bool
// Confirmation that the applicant wants to sign the LPA
WantToSignLpa bool
// SignedAt is when the donor submitted their signature
SignedAt time.Time
// SubmittedAt is when the Lpa was sent to the OPG
SubmittedAt time.Time
// RegisteredAt is when the Lpa was registered by the OPG
RegisteredAt time.Time
// WithdrawnAt is when the Lpa was withdrawn by the donor
WithdrawnAt time.Time
// Version is the number of times the LPA has been updated (auto-incremented on PUT)
Version int
// Codes used for the certificate provider to witness signing
CertificateProviderCodes WitnessCodes
// When the signing was witnessed by the certificate provider
WitnessedByCertificateProviderAt time.Time
// Codes used for the independent witness to witness signing
IndependentWitnessCodes WitnessCodes
// When the signing was witnessed by the independent witness
WitnessedByIndependentWitnessAt time.Time
// Used to rate limit witness code attempts
WitnessCodeLimiter *Limiter
// FeeType is the type of fee the user is applying for
FeeType pay.FeeType
// EvidenceDelivery is the method by which the user wants to send evidence
EvidenceDelivery pay.EvidenceDelivery
// PreviousApplicationNumber if the application is related to an existing application
PreviousApplicationNumber string
// PreviousFee is the fee previously paid for an LPA
PreviousFee pay.PreviousFee
HasSentApplicationUpdatedEvent bool
HasSentPreviousApplicationLinkedEvent bool
}
Lpa contains all the data related to the LPA application
func (*Lpa) ActorAddresses ¶
func (*Lpa) AllAttorneysSigned ¶ added in v0.748.0
func (l *Lpa) AllAttorneysSigned(attorneys []*actor.AttorneyProvidedDetails) bool
func (*Lpa) AllLayAttorneysFirstNames ¶ added in v0.650.0
func (*Lpa) AllLayAttorneysFullNames ¶ added in v0.650.0
func (*Lpa) AttorneysAndCpSigningDeadline ¶
func (*Lpa) CertificateProviderSharesDetails ¶ added in v0.773.0
CertificateProviderSharesDetails will return true if the last name or address of the certificate provider matches that of the donor or one of the attorneys. For a match of the last name we break on '-' to account for double-barrelled names.
func (*Lpa) DonorIdentityConfirmed ¶
func (*Lpa) Progress ¶
func (l *Lpa) Progress(certificateProvider *actor.CertificateProviderProvidedDetails, attorneys []*actor.AttorneyProvidedDetails) Progress
func (*Lpa) TrustCorporationsNames ¶ added in v0.650.0
type LpaAndActorTasks ¶
type LpaAndActorTasks struct { Lpa *Lpa CertificateProvider *actor.CertificateProviderProvidedDetails Attorney *actor.AttorneyProvidedDetails }
type LpaType ¶
type LpaType uint8
func ParseLpaType ¶
func (LpaType) IsHealthWelfare ¶
func (LpaType) IsPropertyFinance ¶
func (LpaType) LegalTermTransKey ¶
type LpaTypeOptions ¶
type NotifyClient ¶
type OneLoginClient ¶
type OneLoginClient interface { AuthCodeURL(state, nonce, locale string, identity bool) string EndSessionURL(idToken, postLogoutURL string) string Exchange(ctx context.Context, code, nonce string) (idToken, accessToken string, err error) UserInfo(ctx context.Context, accessToken string) (onelogin.UserInfo, error) }
type ReplacementAttorneysStepIn ¶
type ReplacementAttorneysStepIn uint8
const ( ReplacementAttorneysStepInWhenAllCanNoLongerAct ReplacementAttorneysStepIn = iota + 1 // all ReplacementAttorneysStepInWhenOneCanNoLongerAct // one ReplacementAttorneysStepInAnotherWay // other )
func ParseReplacementAttorneysStepIn ¶
func ParseReplacementAttorneysStepIn(s string) (ReplacementAttorneysStepIn, error)
func (ReplacementAttorneysStepIn) Empty ¶
func (i ReplacementAttorneysStepIn) Empty() bool
func (ReplacementAttorneysStepIn) IsAnotherWay ¶
func (i ReplacementAttorneysStepIn) IsAnotherWay() bool
func (ReplacementAttorneysStepIn) IsWhenAllCanNoLongerAct ¶
func (i ReplacementAttorneysStepIn) IsWhenAllCanNoLongerAct() bool
func (ReplacementAttorneysStepIn) IsWhenOneCanNoLongerAct ¶
func (i ReplacementAttorneysStepIn) IsWhenOneCanNoLongerAct() bool
func (ReplacementAttorneysStepIn) String ¶
func (i ReplacementAttorneysStepIn) String() string
type ReplacementAttorneysStepInOptions ¶
type ReplacementAttorneysStepInOptions struct { WhenAllCanNoLongerAct ReplacementAttorneysStepIn WhenOneCanNoLongerAct ReplacementAttorneysStepIn AnotherWay ReplacementAttorneysStepIn }
type SessionData ¶
func SessionDataFromContext ¶
func SessionDataFromContext(ctx context.Context) (*SessionData, error)
type SessionMissingError ¶
type SessionMissingError struct{}
func (SessionMissingError) Error ¶
func (s SessionMissingError) Error() string
type SessionStore ¶
type ShareCodeSender ¶
type ShareCodeSender struct {
// contains filtered or unexported fields
}
func NewShareCodeSender ¶
func NewShareCodeSender(shareCodeStore ShareCodeStore, notifyClient NotifyClient, appPublicURL string, randomString func(int) string) *ShareCodeSender
func (*ShareCodeSender) SendAttorneys ¶
func (*ShareCodeSender) SendCertificateProvider ¶
func (*ShareCodeSender) UseTestCode ¶
func (s *ShareCodeSender) UseTestCode()
type ShareCodeStore ¶
type ShareCodeStore interface {}
type Tasks ¶
type Tasks struct { YourDetails actor.TaskState ChooseAttorneys actor.TaskState ChooseReplacementAttorneys actor.TaskState WhenCanTheLpaBeUsed actor.TaskState // pfa only LifeSustainingTreatment actor.TaskState // hw only Restrictions actor.TaskState CertificateProvider actor.TaskState CheckYourLpa actor.TaskState PayForLpa actor.PaymentTask ConfirmYourIdentityAndSign actor.TaskState ChooseYourSignatory actor.TaskState // if .Donor.CanSign.IsNo only PeopleToNotify actor.TaskState }
type WitnessCode ¶
func (WitnessCode) HasExpired ¶
func (w WitnessCode) HasExpired() bool
type WitnessCodeSender ¶
type WitnessCodeSender struct {
// contains filtered or unexported fields
}
func NewWitnessCodeSender ¶
func NewWitnessCodeSender(donorStore DonorStore, notifyClient NotifyClient) *WitnessCodeSender
func (*WitnessCodeSender) SendToCertificateProvider ¶ added in v0.691.0
func (*WitnessCodeSender) SendToIndependentWitness ¶ added in v0.691.0
type WitnessCodes ¶
type WitnessCodes []WitnessCode
func (WitnessCodes) CanRequest ¶
func (ws WitnessCodes) CanRequest(now time.Time) bool
func (WitnessCodes) Find ¶
func (ws WitnessCodes) Find(code string) (WitnessCode, bool)
Source Files
¶
- app_data.go
- auth_redirect.go
- common.go
- config.go
- cookie_consent.go
- csrf.go
- dashboard.go
- data.go
- dependency_health_check.go
- document.go
- enum_canbeusedwhen.go
- enum_lifesustainingtreatment.go
- enum_lpatype.go
- enum_replacementattorneysstepin.go
- error.go
- guidance.go
- limiter.go
- login.go
- login_callback.go
- multi_read_closer.go
- paths.go
- prefix.go
- recover.go
- root.go
- share_code.go
- sign_out.go
- witness_code.go