repository

package
v0.0.0-...-bf7cbd6 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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 AuthRepository

type AuthRepository struct{}

func (*AuthRepository) GetUser

func (repo *AuthRepository) GetUser(ctx context.Context, tx pg.Tx, u *domain.User, id string) error

func (*AuthRepository) InsertUser

func (repo *AuthRepository) InsertUser(ctx context.Context, tx pg.Tx, u *domain.User, hashedPassword string) error

type CheevosRepository

type CheevosRepository struct{}

func (*CheevosRepository) GetCheevo

func (repo *CheevosRepository) GetCheevo(ctx context.Context, tx pg.Tx, cheevo *domain.Cheevo, id string) error

func (*CheevosRepository) InsertAward

func (repo *CheevosRepository) InsertAward(ctx context.Context, tx pg.Tx, award *domain.Award) error

func (*CheevosRepository) InsertCheevo

func (repo *CheevosRepository) InsertCheevo(ctx context.Context, tx pg.Tx, cheevo *domain.Cheevo) error

type RosterRepository

type RosterRepository struct{}

func (*RosterRepository) DeleteInvitationByCode

func (repo *RosterRepository) DeleteInvitationByCode(ctx context.Context, tx pg.Tx, hashedCode string) error

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

Jump to

Keyboard shortcuts

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