Documentation ¶
Index ¶
- type AlbumRepository
- func (a *AlbumRepository) Create(album *entity.Album)
- func (a *AlbumRepository) FindAllByUser(userEntity *entity.User) []*entity.Album
- func (a *AlbumRepository) FindOne(albumUuid uuid.UUID) (*entity.Album, error)
- func (a *AlbumRepository) FindOrCreateLivestreamAlbumForUser(user *entity.User) *entity.Album
- func (a *AlbumRepository) FindOrCreateProfileAlbumForUser(user *entity.User) *entity.Album
- type ImageRepository
- func (i *ImageRepository) Create(image *entity.Image)
- func (i *ImageRepository) FindByAlbumUuid(albumUuid *uuid.UUID) []*entity.Image
- func (i *ImageRepository) FindByUserAndAlbum(userUuid *uuid.UUID, albumUuid *uuid.UUID) *entity.Image
- func (i *ImageRepository) FindByUuid(imageUuid *uuid.UUID) *entity.Image
- func (i *ImageRepository) Save(image *entity.Image)
- type UserRepository
- func (u *UserRepository) Create(user *entity.User)
- func (u *UserRepository) Delete(user *entity.User)
- func (u *UserRepository) FindOneByUsername(username string) (*entity.User, error)
- func (u *UserRepository) FindOneByUuid(uuid uuid.UUID) (*entity.User, error)
- func (u *UserRepository) Update(user *entity.User)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlbumRepository ¶
type AlbumRepository struct {
// contains filtered or unexported fields
}
func CreateAlbumRepository ¶
func CreateAlbumRepository(conn *gorm.DB) *AlbumRepository
func (*AlbumRepository) Create ¶
func (a *AlbumRepository) Create(album *entity.Album)
func (*AlbumRepository) FindAllByUser ¶
func (a *AlbumRepository) FindAllByUser(userEntity *entity.User) []*entity.Album
func (*AlbumRepository) FindOrCreateLivestreamAlbumForUser ¶
func (a *AlbumRepository) FindOrCreateLivestreamAlbumForUser(user *entity.User) *entity.Album
func (*AlbumRepository) FindOrCreateProfileAlbumForUser ¶
func (a *AlbumRepository) FindOrCreateProfileAlbumForUser(user *entity.User) *entity.Album
type ImageRepository ¶
type ImageRepository struct {
// contains filtered or unexported fields
}
func CreateImageRepository ¶
func CreateImageRepository(conn *gorm.DB) *ImageRepository
func (*ImageRepository) Create ¶
func (i *ImageRepository) Create(image *entity.Image)
func (*ImageRepository) FindByAlbumUuid ¶
func (i *ImageRepository) FindByAlbumUuid(albumUuid *uuid.UUID) []*entity.Image
func (*ImageRepository) FindByUserAndAlbum ¶
func (*ImageRepository) FindByUuid ¶
func (i *ImageRepository) FindByUuid(imageUuid *uuid.UUID) *entity.Image
func (*ImageRepository) Save ¶
func (i *ImageRepository) Save(image *entity.Image)
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func CreateUserRepository ¶
func CreateUserRepository(conn *gorm.DB) *UserRepository
func (*UserRepository) Create ¶
func (u *UserRepository) Create(user *entity.User)
func (*UserRepository) Delete ¶
func (u *UserRepository) Delete(user *entity.User)
func (*UserRepository) FindOneByUsername ¶
func (u *UserRepository) FindOneByUsername(username string) (*entity.User, error)
func (*UserRepository) FindOneByUuid ¶
func (*UserRepository) Update ¶
func (u *UserRepository) Update(user *entity.User)
Click to show internal directories.
Click to hide internal directories.