Documentation ¶
Index ¶
- type Conn
- type MemeRepositoryPostgres
- func (mrp *MemeRepositoryPostgres) Delete(id uuid.UUID) error
- func (mrp *MemeRepositoryPostgres) GetAll() ([]domain.Meme, error)
- func (mrp *MemeRepositoryPostgres) GetById(id uuid.UUID) (domain.Meme, error)
- func (mrp *MemeRepositoryPostgres) Insert(meme domain.Meme) error
- func (mrp *MemeRepositoryPostgres) Update(meme domain.Meme, userId uuid.UUID) error
- type UserRepositoryPostgres
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemeRepositoryPostgres ¶
type MemeRepositoryPostgres struct {
Conn Conn
}
func (*MemeRepositoryPostgres) Delete ¶
func (mrp *MemeRepositoryPostgres) Delete(id uuid.UUID) error
func (*MemeRepositoryPostgres) GetAll ¶
func (mrp *MemeRepositoryPostgres) GetAll() ([]domain.Meme, error)
type UserRepositoryPostgres ¶
type UserRepositoryPostgres struct {
Conn Conn
}
func (*UserRepositoryPostgres) GetByUsername ¶
func (urp *UserRepositoryPostgres) GetByUsername(username string) (domain.User, error)
Click to show internal directories.
Click to hide internal directories.