Documentation ¶
Index ¶
- func EnterOrganisationName(logger Logger, tmpl template.Template, organisationStore OrganisationStore, ...) page.Handler
- func EnterReferenceNumber(logger Logger, tmpl template.Template, memberStore MemberStore, ...) page.Handler
- func EnterYourName(tmpl template.Template, memberStore MemberStore) page.Handler
- func LoginCallback(logger Logger, oneLoginClient LoginCallbackOneLoginClient, ...) page.Handler
- func Register(rootMux *http.ServeMux, logger Logger, 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(logger Logger, tmpl template.Template, organisationStore OrganisationStore, ...) Handler
- func DonorAccess(logger Logger, tmpl template.Template, donorStore DonorStore, ...) Handler
- func EditMember(logger Logger, 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 Logger
- 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 ¶
func EnterOrganisationName(logger Logger, tmpl template.Template, organisationStore OrganisationStore, memberStore MemberStore, sessionStore SessionStore) page.Handler
func EnterReferenceNumber ¶
func EnterReferenceNumber(logger Logger, tmpl template.Template, memberStore MemberStore, sessionStore SessionStore) page.Handler
func EnterYourName ¶
func EnterYourName(tmpl template.Template, memberStore MemberStore) page.Handler
func LoginCallback ¶
func LoginCallback(logger Logger, oneLoginClient LoginCallbackOneLoginClient, sessionStore SessionStore, organisationStore OrganisationStore, now func() time.Time, memberStore MemberStore) page.Handler
func Register ¶
func Register( rootMux *http.ServeMux, logger Logger, 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 ¶
type CertificateProviderStore interface {
GetAny(ctx context.Context) (*certificateproviderdata.Provided, error)
}
type DonorStore ¶
type ErrorHandler ¶
type ErrorHandler func(http.ResponseWriter, *http.Request, error)
type Handler ¶
type Handler func(data appcontext.Data, w http.ResponseWriter, r *http.Request, organisation *supporterdata.Organisation, member *supporterdata.Member) error
func ConfirmDonorCanInteractOnline ¶
func ConfirmDonorCanInteractOnline(tmpl template.Template, organisationStore OrganisationStore) Handler
func Dashboard ¶
func Dashboard(tmpl template.Template, donorStore DonorStore, searchClient SearchClient) Handler
func DeleteOrganisation ¶
func DeleteOrganisation(logger Logger, tmpl template.Template, organisationStore OrganisationStore, sessionStore SessionStore, searchClient SearchClient) Handler
func DonorAccess ¶
func DonorAccess(logger Logger, tmpl template.Template, donorStore DonorStore, shareCodeStore ShareCodeStore, notifyClient NotifyClient, appPublicURL string, randomString func(int) string) Handler
func EditMember ¶
func EditMember(logger Logger, tmpl template.Template, memberStore MemberStore) Handler
func EditOrganisationName ¶
func EditOrganisationName(tmpl template.Template, organisationStore OrganisationStore) Handler
func InviteMember ¶
func InviteMember(tmpl template.Template, memberStore MemberStore, notifyClient NotifyClient, randomString func(int) string, appPublicURL string) Handler
func ManageTeamMembers ¶
func ManageTeamMembers(tmpl template.Template, memberStore MemberStore, randomString func(int) string, notifyClient NotifyClient, appPublicURL string) Handler
func ViewLPA ¶
func ViewLPA(tmpl template.Template, lpaStoreResolvingService LpaStoreResolvingService, progressTracker ProgressTracker) Handler
type MemberStore ¶
type MemberStore interface { Create(ctx context.Context, firstNames, lastName string) (*supporterdata.Member, error) CreateFromInvite(ctx context.Context, invite *supporterdata.MemberInvite) error CreateMemberInvite(ctx context.Context, organisation *supporterdata.Organisation, firstNames, lastname, email, code string, permission supporterdata.Permission) error DeleteMemberInvite(ctx context.Context, organisationID, email string) error Get(ctx context.Context) (*supporterdata.Member, error) GetAny(ctx context.Context) (*supporterdata.Member, error) GetAll(ctx context.Context) ([]*supporterdata.Member, error) GetByID(ctx context.Context, memberID string) (*supporterdata.Member, error) InvitedMember(ctx context.Context) (*supporterdata.MemberInvite, error) InvitedMembers(ctx context.Context) ([]*supporterdata.MemberInvite, error) InvitedMembersByEmail(ctx context.Context) ([]*supporterdata.MemberInvite, error) Put(ctx context.Context, member *supporterdata.Member) error }
type NotifyClient ¶
type OneLoginClient ¶
type OrganisationStore ¶
type OrganisationStore interface { Create(ctx context.Context, member *supporterdata.Member, name string) (*supporterdata.Organisation, error) CreateLPA(ctx context.Context) (*donordata.Provided, error) Get(ctx context.Context) (*supporterdata.Organisation, error) Put(ctx context.Context, organisation *supporterdata.Organisation) error SoftDelete(ctx context.Context, organisation *supporterdata.Organisation) error }
type SearchClient ¶
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 ¶
type ShareCodeStore interface {}
type SupporterPath ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.