supporter

package
v0.1393.0-MLPAB2355exp... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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
}

type LpaPath added in v0.1347.0

type LpaPath string

func (LpaPath) Format added in v0.1347.0

func (p LpaPath) Format(lpaID string) string

func (LpaPath) IsManageOrganisation added in v0.1347.0

func (p LpaPath) IsManageOrganisation() bool

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

func (p LpaPath) RedirectQuery(w http.ResponseWriter, r *http.Request, appData appcontext.Data, lpaID string, query url.Values) error

func (LpaPath) String added in v0.1347.0

func (p LpaPath) String() string

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 (*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 (*OrganisationStore) CreateLPA

func (s *OrganisationStore) CreateLPA(ctx context.Context) (*donordata.Provided, error)

func (*OrganisationStore) Get

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) Format added in v0.1347.0

func (p Path) Format() string

func (Path) IsManageOrganisation added in v0.1347.0

func (p Path) IsManageOrganisation() bool

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

func (Path) String added in v0.1347.0

func (p Path) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL