Documentation
¶
Index ¶
- type CardRepository
- func (cr CardRepository) Add(ctx context.Context, card entity.Card) (entity.CardId, error)
- func (cr CardRepository) Delete(ctx context.Context, cardId entity.CardId) error
- func (cr CardRepository) Get(ctx context.Context, cardId entity.CardId) (entity.Card, error)
- func (cr CardRepository) List(ctx context.Context, groupId entity.GroupId) ([]entity.Card, error)
- func (cr CardRepository) Update(ctx context.Context, card entity.Card) error
- type GroupRepository
- func (gr *GroupRepository) Add(ctx context.Context, group entity.Group) (entity.GroupId, error)
- func (gr *GroupRepository) Delete(ctx context.Context, groupId entity.GroupId) error
- func (gr *GroupRepository) Get(ctx context.Context, groupId entity.GroupId) (entity.Group, error)
- func (gr *GroupRepository) ListByUser(ctx context.Context, userId entity.UserId) ([]entity.Group, error)
- func (gr *GroupRepository) Update(ctx context.Context, group entity.Group) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardRepository ¶
type CardRepository struct {
// contains filtered or unexported fields
}
func NewCardRepository ¶
func NewCardRepository(pool *pgxpool.Pool) *CardRepository
type GroupRepository ¶
type GroupRepository struct {
// contains filtered or unexported fields
}
func NewGroupRepository ¶
func NewGroupRepository(pool *pgxpool.Pool) *GroupRepository
func (*GroupRepository) ListByUser ¶
Click to show internal directories.
Click to hide internal directories.