repository

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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) FindOne

func (a *AlbumRepository) FindOne(albumUuid uuid.UUID) (*entity.Album, error)

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 (i *ImageRepository) FindByUserAndAlbum(userUuid *uuid.UUID, albumUuid *uuid.UUID) *entity.Image

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 (u *UserRepository) FindOneByUuid(uuid uuid.UUID) (*entity.User, error)

func (*UserRepository) Update

func (u *UserRepository) Update(user *entity.User)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL