Documentation ¶
Index ¶
- func EnterOrganisationName(tmpl template.Template, organisationStore OrganisationStore, ...) page.Handler
- func EnterReferenceNumber(tmpl template.Template, memberStore MemberStore, sessionStore SessionStore) page.Handler
- func EnterYourName(tmpl template.Template, memberStore MemberStore) page.Handler
- func LoginCallback(oneLoginClient LoginCallbackOneLoginClient, sessionStore SessionStore, ...) page.Handler
- func Register(rootMux *http.ServeMux, tmpls template.Templates, ...)
- type CertificateProviderStore
- type DonorStore
- type ErrorHandler
- type HandleOpt
- type Handler
- func ConfirmDonorCanInteractOnline(tmpl template.Template, organisationStore OrganisationStore) Handler
- func Dashboard(tmpl template.Template, donorStore DonorStore, searchClient SearchClient) Handler
- func DeleteOrganisation(tmpl template.Template, organisationStore OrganisationStore, ...) Handler
- func DonorAccess(tmpl template.Template, donorStore DonorStore, shareCodeStore ShareCodeStore, ...) Handler
- func EditMember(tmpl template.Template, memberStore MemberStore) Handler
- func EditOrganisationName(tmpl template.Template, organisationStore OrganisationStore) Handler
- func Guidance(tmpl template.Template) Handler
- func InviteMember(tmpl template.Template, memberStore MemberStore, notifyClient NotifyClient, ...) Handler
- func ManageTeamMembers(tmpl template.Template, memberStore MemberStore, randomString func(int) string, ...) Handler
- func ViewLPA(tmpl template.Template, lpaStoreResolvingService LpaStoreResolvingService, ...) Handler
- type Localizer
- type LoginCallbackOneLoginClient
- type LpaStoreResolvingService
- type MemberStore
- type NotifyClient
- type OneLoginClient
- type OrganisationStore
- type ProgressTracker
- type SearchClient
- type SessionStore
- type ShareCodeStore
- type SupporterPath
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnterOrganisationName ¶ added in v0.946.0
func EnterOrganisationName(tmpl template.Template, organisationStore OrganisationStore, memberStore MemberStore, sessionStore SessionStore) page.Handler
func EnterReferenceNumber ¶ added in v0.1023.0
func EnterReferenceNumber(tmpl template.Template, memberStore MemberStore, sessionStore SessionStore) page.Handler
func EnterYourName ¶ added in v0.1064.0
func EnterYourName(tmpl template.Template, memberStore MemberStore) page.Handler
func LoginCallback ¶
func LoginCallback(oneLoginClient LoginCallbackOneLoginClient, sessionStore SessionStore, organisationStore OrganisationStore, now func() time.Time, memberStore MemberStore) page.Handler
func Register ¶
func Register( rootMux *http.ServeMux, tmpls template.Templates, oneLoginClient OneLoginClient, sessionStore SessionStore, organisationStore OrganisationStore, errorHandler page.ErrorHandler, notifyClient NotifyClient, appPublicURL string, memberStore MemberStore, searchClient *search.Client, donorStore DonorStore, shareCodeStore ShareCodeStore, progressTracker ProgressTracker, lpaStoreResolvingService LpaStoreResolvingService, )
Types ¶
type CertificateProviderStore ¶ added in v0.1090.0
type CertificateProviderStore interface {
GetAny(ctx context.Context) (*actor.CertificateProviderProvidedDetails, error)
}
type DonorStore ¶ added in v0.1045.0
type DonorStore interface { DeleteDonorAccess(ctx context.Context, shareCodeData actor.ShareCodeData) error Get(ctx context.Context) (*actor.DonorProvidedDetails, error) GetByKeys(ctx context.Context, keys []dynamo.Keys) ([]actor.DonorProvidedDetails, error) Put(ctx context.Context, donor *actor.DonorProvidedDetails) error }
type ErrorHandler ¶
type ErrorHandler func(http.ResponseWriter, *http.Request, error)
type Handler ¶
type Handler func(data page.AppData, w http.ResponseWriter, r *http.Request, organisation *actor.Organisation, member *actor.Member) error
func ConfirmDonorCanInteractOnline ¶ added in v0.1016.0
func ConfirmDonorCanInteractOnline(tmpl template.Template, organisationStore OrganisationStore) Handler
func Dashboard ¶ added in v0.995.0
func Dashboard(tmpl template.Template, donorStore DonorStore, searchClient SearchClient) Handler
func DeleteOrganisation ¶ added in v0.1057.0
func DeleteOrganisation(tmpl template.Template, organisationStore OrganisationStore, sessionStore SessionStore, searchClient SearchClient) Handler
func DonorAccess ¶ added in v0.1079.0
func DonorAccess(tmpl template.Template, donorStore DonorStore, shareCodeStore ShareCodeStore, notifyClient NotifyClient, appPublicURL string, randomString func(int) string) Handler
func EditMember ¶ added in v0.1032.0
func EditMember(tmpl template.Template, memberStore MemberStore) Handler
func EditOrganisationName ¶ added in v0.994.0
func EditOrganisationName(tmpl template.Template, organisationStore OrganisationStore) Handler
func InviteMember ¶ added in v0.949.0
func InviteMember(tmpl template.Template, memberStore MemberStore, notifyClient NotifyClient, randomString func(int) string, appPublicURL string) Handler
func ManageTeamMembers ¶ added in v0.1005.0
func ManageTeamMembers(tmpl template.Template, memberStore MemberStore, randomString func(int) string, notifyClient NotifyClient, appPublicURL string) Handler
func ViewLPA ¶ added in v0.1076.0
func ViewLPA(tmpl template.Template, lpaStoreResolvingService LpaStoreResolvingService, progressTracker ProgressTracker) Handler
type LpaStoreResolvingService ¶ added in v0.1116.0
type MemberStore ¶ added in v0.1032.0
type MemberStore interface { Create(ctx context.Context, firstNames, lastName string) (*actor.Member, error) CreateFromInvite(ctx context.Context, invite *actor.MemberInvite) error CreateMemberInvite(ctx context.Context, organisation *actor.Organisation, firstNames, lastname, email, code string, permission actor.Permission) error DeleteMemberInvite(ctx context.Context, organisationID, email string) error Get(ctx context.Context) (*actor.Member, error) GetAny(ctx context.Context) (*actor.Member, error) GetAll(ctx context.Context) ([]*actor.Member, error) GetByID(ctx context.Context, memberID string) (*actor.Member, error) InvitedMember(ctx context.Context) (*actor.MemberInvite, error) InvitedMembers(ctx context.Context) ([]*actor.MemberInvite, error) InvitedMembersByEmail(ctx context.Context) ([]*actor.MemberInvite, error) Put(ctx context.Context, member *actor.Member) error }
type NotifyClient ¶ added in v0.949.0
type OneLoginClient ¶
type OrganisationStore ¶ added in v0.946.0
type OrganisationStore interface { Create(ctx context.Context, member *actor.Member, name string) (*actor.Organisation, error) CreateLPA(ctx context.Context) (*actor.DonorProvidedDetails, error) Get(ctx context.Context) (*actor.Organisation, error) Put(ctx context.Context, organisation *actor.Organisation) error SoftDelete(ctx context.Context, organisation *actor.Organisation) error }
type ProgressTracker ¶ added in v0.1090.0
type SearchClient ¶ added in v0.1045.0
type SearchClient interface { Query(ctx context.Context, req search.QueryRequest) (*search.QueryResponse, error) CountWithQuery(ctx context.Context, req search.CountWithQueryReq) (int, error) }
type SessionStore ¶
type SessionStore interface { ClearLogin(r *http.Request, w http.ResponseWriter) error Login(r *http.Request) (*sesh.LoginSession, error) OneLogin(r *http.Request) (*sesh.OneLoginSession, error) SetLogin(r *http.Request, w http.ResponseWriter, session *sesh.LoginSession) error SetOneLogin(r *http.Request, w http.ResponseWriter, session *sesh.OneLoginSession) error }
type ShareCodeStore ¶ added in v0.1079.0
type ShareCodeStore interface {}
type SupporterPath ¶ added in v0.1079.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.