Documentation ¶
Index ¶
- Constants
- func EnterReferenceNumber(tmpl template.Template, shareCodeStore ShareCodeStore, ...) page.Handler
- func Register(rootMux *http.ServeMux, logger Logger, commonTmpls, tmpls template.Templates, ...)
- type AddressClient
- type AttorneyStore
- type CertificateProviderStore
- type DashboardStore
- type DonorStore
- type ErrorHandler
- type Handler
- func ConfirmYourDetails(tmpl template.Template, attorneyStore AttorneyStore, donorStore DonorStore) Handler
- func Guidance(tmpl template.Template, donorStore DonorStore) Handler
- func MobileNumber(tmpl template.Template, attorneyStore AttorneyStore) Handler
- func Progress(tmpl template.Template, attorneyStore AttorneyStore, donorStore DonorStore) Handler
- func ReadTheLpa(tmpl template.Template, donorStore DonorStore, attorneyStore AttorneyStore) Handler
- func Sign(tmpl template.Template, donorStore DonorStore, ...) Handler
- func TaskList(tmpl template.Template, donorStore DonorStore, ...) Handler
- func WouldLikeSecondSignatory(tmpl template.Template, attorneyStore AttorneyStore, donorStore DonorStore, ...) Handler
- func YourPreferredLanguage(tmpl template.Template, attorneyStore AttorneyStore, donorStore DonorStore) Handler
- type Logger
- type LpaStoreClient
- type OneLoginClient
- type SessionStore
- type ShareCodeStore
- type Template
Constants ¶
View Source
const ( None handleOpt = 1 << iota RequireSession RequireAttorney CanGoBack )
Variables ¶
This section is empty.
Functions ¶
func EnterReferenceNumber ¶
func EnterReferenceNumber(tmpl template.Template, shareCodeStore ShareCodeStore, sessionStore sessions.Store, attorneyStore AttorneyStore) page.Handler
func Register ¶
func Register( rootMux *http.ServeMux, logger Logger, commonTmpls, tmpls template.Templates, sessionStore SessionStore, donorStore DonorStore, certificateProviderStore CertificateProviderStore, attorneyStore AttorneyStore, oneLoginClient OneLoginClient, shareCodeStore ShareCodeStore, errorHandler page.ErrorHandler, notFoundHandler page.Handler, dashboardStore DashboardStore, lpaStoreClient LpaStoreClient, )
Types ¶
type AddressClient ¶
type AttorneyStore ¶
type AttorneyStore interface { Create(ctx context.Context, sessionID string, attorneyUID actoruid.UID, isReplacement, isTrustCorporation bool) (*actor.AttorneyProvidedDetails, error) Get(ctx context.Context) (*actor.AttorneyProvidedDetails, error) GetAny(ctx context.Context) ([]*actor.AttorneyProvidedDetails, error) Put(ctx context.Context, attorney *actor.AttorneyProvidedDetails) error }
type CertificateProviderStore ¶
type CertificateProviderStore interface {
GetAny(ctx context.Context) (*actor.CertificateProviderProvidedDetails, error)
}
type DashboardStore ¶ added in v0.899.0
type DonorStore ¶
type DonorStore interface {
GetAny(context.Context) (*actor.DonorProvidedDetails, error)
}
type ErrorHandler ¶ added in v0.930.0
type ErrorHandler func(http.ResponseWriter, *http.Request, error)
type Handler ¶
type Handler func(data page.AppData, w http.ResponseWriter, r *http.Request, details *actor.AttorneyProvidedDetails) error
func ConfirmYourDetails ¶
func ConfirmYourDetails(tmpl template.Template, attorneyStore AttorneyStore, donorStore DonorStore) Handler
func MobileNumber ¶
func MobileNumber(tmpl template.Template, attorneyStore AttorneyStore) Handler
func Progress ¶ added in v0.748.0
func Progress(tmpl template.Template, attorneyStore AttorneyStore, donorStore DonorStore) Handler
func ReadTheLpa ¶
func ReadTheLpa(tmpl template.Template, donorStore DonorStore, attorneyStore AttorneyStore) Handler
func Sign ¶
func Sign( tmpl template.Template, donorStore DonorStore, certificateProviderStore CertificateProviderStore, attorneyStore AttorneyStore, lpaStoreClient LpaStoreClient, now func() time.Time, ) Handler
func TaskList ¶
func TaskList(tmpl template.Template, donorStore DonorStore, certificateProviderStore CertificateProviderStore) Handler
func WouldLikeSecondSignatory ¶
func WouldLikeSecondSignatory(tmpl template.Template, attorneyStore AttorneyStore, donorStore DonorStore, lpaStoreClient LpaStoreClient) Handler
func YourPreferredLanguage ¶ added in v0.884.0
func YourPreferredLanguage(tmpl template.Template, attorneyStore AttorneyStore, donorStore DonorStore) Handler
type LpaStoreClient ¶ added in v0.926.0
type LpaStoreClient interface {
SendAttorney(context.Context, *actor.DonorProvidedDetails, *actor.AttorneyProvidedDetails) error
}
type OneLoginClient ¶
type SessionStore ¶
type ShareCodeStore ¶
type ShareCodeStore interface {}
Click to show internal directories.
Click to hide internal directories.