Documentation ¶
Index ¶
- Constants
- type DynamoClient
- type LpaPath
- func (p LpaPath) Format(lpaID string) string
- func (p LpaPath) IsManageOrganisation() bool
- func (p LpaPath) Redirect(w http.ResponseWriter, r *http.Request, appData appcontext.Data, lpaID string) error
- func (p LpaPath) RedirectQuery(w http.ResponseWriter, r *http.Request, appData appcontext.Data, lpaID string, ...) error
- func (p LpaPath) String() string
- type MemberStore
- func (s *MemberStore) Create(ctx context.Context, firstNames, lastName string) (*supporterdata.Member, error)
- func (s *MemberStore) CreateFromInvite(ctx context.Context, invite *supporterdata.MemberInvite) error
- func (s *MemberStore) CreateMemberInvite(ctx context.Context, organisation *supporterdata.Organisation, ...) error
- func (s *MemberStore) DeleteMemberInvite(ctx context.Context, organisationID, email string) error
- func (s *MemberStore) Get(ctx context.Context) (*supporterdata.Member, error)
- func (s *MemberStore) GetAll(ctx context.Context) ([]*supporterdata.Member, error)
- func (s *MemberStore) GetAny(ctx context.Context) (*supporterdata.Member, error)
- func (s *MemberStore) GetByID(ctx context.Context, memberID string) (*supporterdata.Member, error)
- func (s *MemberStore) InvitedMember(ctx context.Context) (*supporterdata.MemberInvite, error)
- func (s *MemberStore) InvitedMembers(ctx context.Context) ([]*supporterdata.MemberInvite, error)
- func (s *MemberStore) InvitedMembersByEmail(ctx context.Context) ([]*supporterdata.MemberInvite, error)
- func (s *MemberStore) Put(ctx context.Context, member *supporterdata.Member) error
- type OrganisationStore
- func (s *OrganisationStore) Create(ctx context.Context, member *supporterdata.Member, name string) (*supporterdata.Organisation, error)
- func (s *OrganisationStore) CreateLPA(ctx context.Context) (*donordata.Provided, error)
- func (s *OrganisationStore) Get(ctx context.Context) (*supporterdata.Organisation, error)
- func (s *OrganisationStore) Put(ctx context.Context, organisation *supporterdata.Organisation) error
- func (s *OrganisationStore) SoftDelete(ctx context.Context, organisation *supporterdata.Organisation) error
- type Path
Constants ¶
View Source
const ( PathConfirmDonorCanInteractOnline = Path("/confirm-donor-can-interact-online") PathContactOPGForPaperForms = Path("/contact-opg-for-paper-forms") PathDashboard = Path("/dashboard") PathDeleteOrganisation = Path("/manage-organisation/organisation-details/delete-organisation") PathEditMember = Path("/manage-organisation/manage-team-members/edit-team-member") PathEditOrganisationName = Path("/manage-organisation/organisation-details/edit-organisation-name") PathInviteMember = Path("/invite-member") PathInviteMemberConfirmation = Path("/invite-member-confirmation") PathManageTeamMembers = Path("/manage-organisation/manage-team-members") PathOrganisationCreated = Path("/organisation-or-company-created") PathOrganisationDetails = Path("/manage-organisation/organisation-details") PathDonorAccess = LpaPath("/donor-access") PathViewLPA = LpaPath("/view-lpa") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamoClient ¶
type DynamoClient interface { AllByPartialSK(ctx context.Context, pk dynamo.PK, partialSK dynamo.SK, v interface{}) error AllBySK(ctx context.Context, sk dynamo.SK, v interface{}) error Create(ctx context.Context, v interface{}) error DeleteOne(ctx context.Context, pk dynamo.PK, sk dynamo.SK) error One(ctx context.Context, pk dynamo.PK, sk dynamo.SK, v interface{}) error OneBySK(ctx context.Context, sk dynamo.SK, v interface{}) error Put(ctx context.Context, v interface{}) error WriteTransaction(ctx context.Context, transaction *dynamo.Transaction) error }
type LpaPath ¶ added in v0.1347.0
type LpaPath string
func (LpaPath) IsManageOrganisation ¶ added in v0.1347.0
func (LpaPath) Redirect ¶ added in v0.1347.0
func (p LpaPath) Redirect(w http.ResponseWriter, r *http.Request, appData appcontext.Data, lpaID string) error
func (LpaPath) RedirectQuery ¶ added in v0.1347.0
type MemberStore ¶
type MemberStore struct {
// contains filtered or unexported fields
}
func NewMemberStore ¶
func NewMemberStore(dynamoClient DynamoClient) *MemberStore
func (*MemberStore) Create ¶
func (s *MemberStore) Create(ctx context.Context, firstNames, lastName string) (*supporterdata.Member, error)
func (*MemberStore) CreateFromInvite ¶
func (s *MemberStore) CreateFromInvite(ctx context.Context, invite *supporterdata.MemberInvite) error
func (*MemberStore) CreateMemberInvite ¶
func (s *MemberStore) CreateMemberInvite(ctx context.Context, organisation *supporterdata.Organisation, firstNames, lastname, email, referenceNumber string, permission supporterdata.Permission) error
func (*MemberStore) DeleteMemberInvite ¶
func (s *MemberStore) DeleteMemberInvite(ctx context.Context, organisationID, email string) error
func (*MemberStore) Get ¶
func (s *MemberStore) Get(ctx context.Context) (*supporterdata.Member, error)
func (*MemberStore) GetAll ¶
func (s *MemberStore) GetAll(ctx context.Context) ([]*supporterdata.Member, error)
func (*MemberStore) GetAny ¶
func (s *MemberStore) GetAny(ctx context.Context) (*supporterdata.Member, error)
func (*MemberStore) GetByID ¶
func (s *MemberStore) GetByID(ctx context.Context, memberID string) (*supporterdata.Member, error)
func (*MemberStore) InvitedMember ¶
func (s *MemberStore) InvitedMember(ctx context.Context) (*supporterdata.MemberInvite, error)
func (*MemberStore) InvitedMembers ¶
func (s *MemberStore) InvitedMembers(ctx context.Context) ([]*supporterdata.MemberInvite, error)
func (*MemberStore) InvitedMembersByEmail ¶
func (s *MemberStore) InvitedMembersByEmail(ctx context.Context) ([]*supporterdata.MemberInvite, error)
func (*MemberStore) Put ¶
func (s *MemberStore) Put(ctx context.Context, member *supporterdata.Member) error
type OrganisationStore ¶
type OrganisationStore struct {
// contains filtered or unexported fields
}
func NewOrganisationStore ¶
func NewOrganisationStore(dynamoClient DynamoClient) *OrganisationStore
func (*OrganisationStore) Create ¶
func (s *OrganisationStore) Create(ctx context.Context, member *supporterdata.Member, name string) (*supporterdata.Organisation, error)
func (*OrganisationStore) Get ¶
func (s *OrganisationStore) Get(ctx context.Context) (*supporterdata.Organisation, error)
func (*OrganisationStore) Put ¶
func (s *OrganisationStore) Put(ctx context.Context, organisation *supporterdata.Organisation) error
func (*OrganisationStore) SoftDelete ¶
func (s *OrganisationStore) SoftDelete(ctx context.Context, organisation *supporterdata.Organisation) error
type Path ¶ added in v0.1347.0
type Path string
func (Path) IsManageOrganisation ¶ added in v0.1347.0
func (Path) Redirect ¶ added in v0.1347.0
func (p Path) Redirect(w http.ResponseWriter, r *http.Request, appData appcontext.Data) error
func (Path) RedirectQuery ¶ added in v0.1347.0
func (p Path) RedirectQuery(w http.ResponseWriter, r *http.Request, appData appcontext.Data, query url.Values) error
Click to show internal directories.
Click to hide internal directories.