Documentation ¶
Index ¶
- func ConfirmYourDetails(tmpl template.Template, donorStore DonorStore, ...) page.Handler
- func EnterDateOfBirth(tmpl template.Template, donorStore DonorStore, ...) page.Handler
- func EnterReferenceNumber(tmpl template.Template, shareCodeStore ShareCodeStore, ...) page.Handler
- func Guidance(tmpl template.Template, donorStore DonorStore, ...) page.Handler
- func IdentityWithOneLogin(oneLoginClient OneLoginClient, sessionStore SessionStore, ...) page.Handler
- func IdentityWithOneLoginCallback(tmpl template.Template, oneLoginClient OneLoginClient, ...) page.Handler
- func ProvideCertificate(tmpl template.Template, donorStore DonorStore, ...) page.Handler
- func ReadTheLpa(tmpl template.Template, donorStore DonorStore, ...) page.Handler
- func Register(rootMux *http.ServeMux, logger Logger, commonTmpls, tmpls template.Templates, ...)
- func TaskList(tmpl template.Template, donorStore DonorStore, ...) page.Handler
- func WhatIsYourHomeAddress(logger Logger, tmpl template.Template, addressClient AddressClient, ...) page.Handler
- func WhoIsEligible(tmpl template.Template, donorStore DonorStore) page.Handler
- func YourPreferredLanguage(tmpl template.Template, certificateProviderStore CertificateProviderStore, ...) page.Handler
- type AddressClient
- type CertificateProviderStore
- type DashboardStore
- type DonorStore
- type ErrorHandler
- type Localizer
- type Logger
- type LpaStoreClient
- type NotifyClient
- type OneLoginClient
- type SessionStore
- type ShareCodeSender
- type ShareCodeStore
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfirmYourDetails ¶
func ConfirmYourDetails(tmpl template.Template, donorStore DonorStore, certificateProviderStore CertificateProviderStore) page.Handler
func EnterDateOfBirth ¶
func EnterDateOfBirth(tmpl template.Template, donorStore DonorStore, certificateProviderStore CertificateProviderStore) page.Handler
func EnterReferenceNumber ¶
func EnterReferenceNumber(tmpl template.Template, shareCodeStore ShareCodeStore, sessionStore SessionStore, certificateProviderStore CertificateProviderStore) page.Handler
func Guidance ¶
func Guidance(tmpl template.Template, donorStore DonorStore, certificateProviderStore CertificateProviderStore) page.Handler
func IdentityWithOneLogin ¶
func IdentityWithOneLogin(oneLoginClient OneLoginClient, sessionStore SessionStore, randomString func(int) string) page.Handler
func IdentityWithOneLoginCallback ¶
func IdentityWithOneLoginCallback(tmpl template.Template, oneLoginClient OneLoginClient, sessionStore SessionStore, certificateProviderStore CertificateProviderStore, donorStore DonorStore) page.Handler
func ProvideCertificate ¶
func ProvideCertificate( tmpl template.Template, donorStore DonorStore, certificateProviderStore CertificateProviderStore, notifyClient NotifyClient, shareCodeSender ShareCodeSender, lpaStoreClient LpaStoreClient, now func() time.Time, ) page.Handler
func ReadTheLpa ¶
func ReadTheLpa(tmpl template.Template, donorStore DonorStore, certificateProviderStore CertificateProviderStore) page.Handler
func Register ¶
func Register( rootMux *http.ServeMux, logger Logger, commonTmpls, tmpls template.Templates, sessionStore SessionStore, donorStore DonorStore, oneLoginClient OneLoginClient, shareCodeStore ShareCodeStore, errorHandler page.ErrorHandler, certificateProviderStore CertificateProviderStore, notFoundHandler page.Handler, addressClient AddressClient, notifyClient NotifyClient, shareCodeSender ShareCodeSender, dashboardStore DashboardStore, lpaStoreClient LpaStoreClient, )
func TaskList ¶
func TaskList(tmpl template.Template, donorStore DonorStore, certificateProviderStore CertificateProviderStore) page.Handler
func WhatIsYourHomeAddress ¶ added in v0.834.0
func WhatIsYourHomeAddress(logger Logger, tmpl template.Template, addressClient AddressClient, certificateProviderStore CertificateProviderStore) page.Handler
func WhoIsEligible ¶
func WhoIsEligible(tmpl template.Template, donorStore DonorStore) page.Handler
func YourPreferredLanguage ¶ added in v0.884.0
func YourPreferredLanguage(tmpl template.Template, certificateProviderStore CertificateProviderStore, donorStore DonorStore) page.Handler
Types ¶
type AddressClient ¶ added in v0.834.0
type CertificateProviderStore ¶
type CertificateProviderStore interface { Create(ctx context.Context, sessionID string, certificateProviderUID actoruid.UID) (*actor.CertificateProviderProvidedDetails, error) Get(ctx context.Context) (*actor.CertificateProviderProvidedDetails, error) Put(ctx context.Context, certificateProvider *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 LpaStoreClient ¶ added in v0.922.0
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 SessionStore ¶
type SessionStore interface { Login(r *http.Request) (*sesh.LoginSession, error) SetLogin(r *http.Request, w http.ResponseWriter, session *sesh.LoginSession) error OneLogin(r *http.Request) (*sesh.OneLoginSession, error) SetOneLogin(r *http.Request, w http.ResponseWriter, session *sesh.OneLoginSession) error }
type ShareCodeSender ¶ added in v0.881.0
type ShareCodeSender interface {
}type ShareCodeStore ¶
type ShareCodeStore interface {}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.