Documentation
¶
Index ¶
- Variables
- type AuthRepository
- type CheevosRepository
- func (repo *CheevosRepository) GetCheevo(ctx context.Context, tx pg.Tx, cheevo *domain.Cheevo, id string) error
- func (repo *CheevosRepository) InsertAward(ctx context.Context, tx pg.Tx, award *domain.Award) error
- func (repo *CheevosRepository) InsertCheevo(ctx context.Context, tx pg.Tx, cheevo *domain.Cheevo) error
- type RosterRepository
- func (repo *RosterRepository) DeleteInvitationByCode(ctx context.Context, tx pg.Tx, hashedCode string) error
- func (repo *RosterRepository) GetInvitation(ctx context.Context, tx pg.Tx, i *domain.Invitation, id string) error
- func (repo *RosterRepository) GetInvitationByCode(ctx context.Context, tx pg.Tx, i *domain.Invitation, hashedCode string) error
- func (repo *RosterRepository) GetMembership(ctx context.Context, tx pg.Tx, m *domain.Membership, orgID, userID string) error
- func (repo *RosterRepository) InsertInvitation(ctx context.Context, tx pg.Tx, i *domain.Invitation, hashedCode string) error
- func (repo *RosterRepository) InsertMembership(ctx context.Context, tx pg.Tx, m *domain.Membership) error
- func (repo *RosterRepository) InsertOrganization(ctx context.Context, tx pg.Tx, o *domain.Organization) error
- func (repo *RosterRepository) UpdateInvitation(ctx context.Context, tx pg.Tx, i *domain.Invitation, hashedCode string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //go:embed sql/delete_invitation.sql DeleteInvitationQuery string //go:embed sql/get_cheevo.sql GetCheevoQuery string //go:embed sql/get_invitation.sql GetInvitationQuery string //go:embed sql/get_invitation_by_code.sql GetInvitationByCodeQuery string //go:embed sql/get_membership.sql GetMembershipQuery string //go:embed sql/get_user.sql GetUserQuery string //go:embed sql/insert_award.sql InsertAwardQuery string //go:embed sql/insert_cheevo.sql InsertCheevoQuery string //go:embed sql/insert_invitation.sql InsertInvitationQuery string //go:embed sql/insert_membership.sql InsertMembershipQuery string //go:embed sql/insert_organization.sql InsertOrganizationQuery string //go:embed sql/insert_user.sql InsertUserQuery string //go:embed sql/update_invitation.sql UpdateInvitationQuery string )
Functions ¶
This section is empty.
Types ¶
type CheevosRepository ¶
type CheevosRepository struct{}
func (*CheevosRepository) InsertAward ¶
func (*CheevosRepository) InsertCheevo ¶
type RosterRepository ¶
type RosterRepository struct{}
func (*RosterRepository) DeleteInvitationByCode ¶
func (*RosterRepository) GetInvitation ¶
func (repo *RosterRepository) GetInvitation(ctx context.Context, tx pg.Tx, i *domain.Invitation, id string) error
func (*RosterRepository) GetInvitationByCode ¶
func (repo *RosterRepository) GetInvitationByCode(ctx context.Context, tx pg.Tx, i *domain.Invitation, hashedCode string) error
func (*RosterRepository) GetMembership ¶
func (repo *RosterRepository) GetMembership(ctx context.Context, tx pg.Tx, m *domain.Membership, orgID, userID string) error
func (*RosterRepository) InsertInvitation ¶
func (repo *RosterRepository) InsertInvitation(ctx context.Context, tx pg.Tx, i *domain.Invitation, hashedCode string) error
func (*RosterRepository) InsertMembership ¶
func (repo *RosterRepository) InsertMembership(ctx context.Context, tx pg.Tx, m *domain.Membership) error
func (*RosterRepository) InsertOrganization ¶
func (repo *RosterRepository) InsertOrganization(ctx context.Context, tx pg.Tx, o *domain.Organization) error
func (*RosterRepository) UpdateInvitation ¶
func (repo *RosterRepository) UpdateInvitation(ctx context.Context, tx pg.Tx, i *domain.Invitation, hashedCode string) error
Click to show internal directories.
Click to hide internal directories.