Documentation
¶
Index ¶
- type CartRedisRepository
- func (r *CartRedisRepository) Add(ctx context.Context, userId uuid.UUID, postId uuid.UUID) (int, error)
- func (r *CartRedisRepository) GetUUID(ctx context.Context, userId uuid.UUID) ([]uuid.UUID, int, error)
- func (r *CartRedisRepository) Remove(ctx context.Context, userId uuid.UUID, postId uuid.UUID) (int, error)
- type PostPostgressRepository
- func (t *PostPostgressRepository) AddFavorite(ctx context.Context, userId uuid.UUID, postId uuid.UUID) (int, error)
- func (t *PostPostgressRepository) Create(ctx context.Context, post domain.Post) (int, error)
- func (t *PostPostgressRepository) Delete(ctx context.Context, id uuid.UUID) (int, error)
- func (t PostPostgressRepository) GetCart(ctx context.Context, postId []uuid.UUID) ([]domain.Post, int, error)
- func (t PostPostgressRepository) GetFavorite(ctx context.Context, userId uuid.UUID) ([]uuid.UUID, int, error)
- func (t PostPostgressRepository) GetIdPost(ctx context.Context, id uuid.UUID) (*domain.Post, int, error)
- func (t PostPostgressRepository) GetMiniPostSortNew(ctx context.Context, par domain.Parameters) ([]domain.Post, int, error)
- func (t *PostPostgressRepository) RemoveFavorite(ctx context.Context, userId uuid.UUID, postId uuid.UUID) (int, error)
- func (t PostPostgressRepository) SearchPost(ctx context.Context, search string) ([]uuid.UUID, int, error)
- func (t *PostPostgressRepository) Update(ctx context.Context, post domain.Post) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CartRedisRepository ¶
type CartRedisRepository struct {
// contains filtered or unexported fields
}
func CreateRedisRepository ¶
func CreateRedisRepository(cfg config.Config) CartRedisRepository
type PostPostgressRepository ¶
type PostPostgressRepository struct {
// contains filtered or unexported fields
}
func CreatePostgressRepository ¶
func CreatePostgressRepository(cfg config.Config) PostPostgressRepository
func (*PostPostgressRepository) AddFavorite ¶
func (PostPostgressRepository) GetFavorite ¶
func (PostPostgressRepository) GetMiniPostSortNew ¶
func (t PostPostgressRepository) GetMiniPostSortNew(ctx context.Context, par domain.Parameters) ([]domain.Post, int, error)
func (*PostPostgressRepository) RemoveFavorite ¶
func (PostPostgressRepository) SearchPost ¶
Click to show internal directories.
Click to hide internal directories.