supporter

package
v0.1344.0-orgmoves.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 (*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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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