Documentation ¶
Index ¶
- type DynamoClient
- 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
Constants ¶
This section is empty.
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 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
Click to show internal directories.
Click to hide internal directories.