Documentation ¶
Index ¶
- func EnterOrganisationName(tmpl template.Template, organisationStore OrganisationStore, ...) page.Handler
- func LoginCallback(oneLoginClient LoginCallbackOneLoginClient, sessionStore sesh.Store, ...) page.Handler
- func Register(rootMux *http.ServeMux, tmpls template.Templates, ...)
- type ErrorHandler
- type Handler
- func Dashboard(tmpl template.Template, organisationStore OrganisationStore) Handler
- func EditOrganisationName(tmpl template.Template, organisationStore OrganisationStore) Handler
- func Guidance(tmpl template.Template) Handler
- func InviteMember(tmpl template.Template, organisationStore OrganisationStore, ...) Handler
- func OrganisationCreated(tmpl template.Template) Handler
- type LoginCallbackOneLoginClient
- type NotifyClient
- type OneLoginClient
- type OrganisationStore
- type SessionStore
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnterOrganisationName ¶ added in v0.946.0
func LoginCallback ¶
func LoginCallback(oneLoginClient LoginCallbackOneLoginClient, sessionStore sesh.Store, organisationStore OrganisationStore) page.Handler
func Register ¶
func Register( rootMux *http.ServeMux, tmpls template.Templates, oneLoginClient OneLoginClient, sessionStore SessionStore, organisationStore OrganisationStore, notFoundHandler page.Handler, errorHandler page.ErrorHandler, notifyClient NotifyClient, appPublicURL string, )
Types ¶
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) error
func Dashboard ¶ added in v0.995.0
func Dashboard(tmpl template.Template, organisationStore OrganisationStore) 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, organisationStore OrganisationStore, notifyClient NotifyClient, randomString func(int) string, appPublicURL string) Handler
func OrganisationCreated ¶ added in v0.948.0
type NotifyClient ¶ added in v0.949.0
type OneLoginClient ¶
type OrganisationStore ¶ added in v0.946.0
type OrganisationStore interface { Create(ctx context.Context, name string) (*actor.Organisation, error) CreateMemberInvite(ctx context.Context, organisation *actor.Organisation, firstNames, lastname, email, code string, permission actor.Permission) error Get(ctx context.Context) (*actor.Organisation, error) CreateLPA(ctx context.Context) (*actor.DonorProvidedDetails, error) AllLPAs(ctx context.Context) ([]actor.DonorProvidedDetails, error) Put(ctx context.Context, organisation *actor.Organisation) error }
type SessionStore ¶
Click to show internal directories.
Click to hide internal directories.