Documentation ¶
Index ¶
- type CatsRepository
- func (r *CatsRepository) All(ctx context.Context) ([]*models.Cat, error)
- func (r *CatsRepository) Create(ctx context.Context, params dto.CreateCatParams) (catID int, err error)
- func (r *CatsRepository) Delete(ctx context.Context, catID int) (err error)
- func (r *CatsRepository) One(ctx context.Context, catID int) (*models.Cat, error)
- func (r *CatsRepository) Update(ctx context.Context, params dto.UpdateCatParams) (err error)
- func (r *CatsRepository) WithinTransaction(ctx context.Context, f func(ctx context.Context) error) error
- type MissionsRepository
- func (r *MissionsRepository) All(ctx context.Context, params dto.GetMissionsParams) ([]*models.Mission, error)
- func (r *MissionsRepository) Create(ctx context.Context) (missionID int, err error)
- func (r *MissionsRepository) Delete(ctx context.Context, missionID int) (err error)
- func (r *MissionsRepository) One(ctx context.Context, missionID int) (*models.Mission, error)
- func (r *MissionsRepository) Update(ctx context.Context, params dto.UpdateMissionParams) (err error)
- type NotesRepository
- type TargetsRepository
- func (r *TargetsRepository) All(ctx context.Context, missionID int) ([]*models.Target, error)
- func (r *TargetsRepository) Create(ctx context.Context, missionID int, lastTargetID int, ...) error
- func (r *TargetsRepository) Delete(ctx context.Context, missionID, targetID int) (err error)
- func (r *TargetsRepository) One(ctx context.Context, missionID int, targetID int) (*models.Target, error)
- func (r *TargetsRepository) Update(ctx context.Context, missionID, targetID int, completed *bool) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CatsRepository ¶
type CatsRepository struct {
// contains filtered or unexported fields
}
func NewCatsRepository ¶
func NewCatsRepository(db *poolwrapper.Pool) *CatsRepository
func (*CatsRepository) Create ¶
func (r *CatsRepository) Create(ctx context.Context, params dto.CreateCatParams) (catID int, err error)
func (*CatsRepository) Delete ¶
func (r *CatsRepository) Delete(ctx context.Context, catID int) (err error)
func (*CatsRepository) Update ¶
func (r *CatsRepository) Update(ctx context.Context, params dto.UpdateCatParams) (err error)
func (*CatsRepository) WithinTransaction ¶
type MissionsRepository ¶
type MissionsRepository struct {
// contains filtered or unexported fields
}
func NewMissionsRepository ¶
func NewMissionsRepository(db *poolwrapper.Pool) *MissionsRepository
func (*MissionsRepository) All ¶
func (r *MissionsRepository) All(ctx context.Context, params dto.GetMissionsParams) ([]*models.Mission, error)
func (*MissionsRepository) Create ¶
func (r *MissionsRepository) Create(ctx context.Context) (missionID int, err error)
func (*MissionsRepository) Delete ¶
func (r *MissionsRepository) Delete(ctx context.Context, missionID int) (err error)
func (*MissionsRepository) Update ¶
func (r *MissionsRepository) Update(ctx context.Context, params dto.UpdateMissionParams) (err error)
type NotesRepository ¶
type NotesRepository struct {
// contains filtered or unexported fields
}
func NewNotesRepository ¶
func NewNotesRepository(db *poolwrapper.Pool) *NotesRepository
type TargetsRepository ¶
type TargetsRepository struct {
// contains filtered or unexported fields
}
func NewTargetsRepository ¶
func NewTargetsRepository(db *poolwrapper.Pool) *TargetsRepository
func (*TargetsRepository) Create ¶
func (r *TargetsRepository) Create(ctx context.Context, missionID int, lastTargetID int, targets []dto.CreateTargetParams) error
func (*TargetsRepository) Delete ¶
func (r *TargetsRepository) Delete(ctx context.Context, missionID, targetID int) (err error)
Click to show internal directories.
Click to hide internal directories.