Documentation ¶
Index ¶
- type GormRepo
- func (r *GormRepo) CreateFilmLog(ctx context.Context, filmLog *domain.FilmLog) error
- func (r *GormRepo) CreatePhoto(ctx context.Context, photo *domain.Photo) error
- func (r *GormRepo) CreateUser(ctx context.Context, user *domain.User) error
- func (r *GormRepo) DeleteFilmLog(ctx context.Context, filmLogID uint) error
- func (r *GormRepo) DeletePhoto(ctx context.Context, photoID uint) error
- func (r *GormRepo) DeleteUser(ctx context.Context, id uint) error
- func (r *GormRepo) GetFilmLog(ctx context.Context, filmLogID uint) (*domain.FilmLog, error)
- func (r *GormRepo) GetPhoto(ctx context.Context, photoID uint) (*domain.Photo, error)
- func (r *GormRepo) GetUser(ctx context.Context, id uint) (*domain.User, error)
- func (r *GormRepo) ListFilmLogs(ctx context.Context) ([]*domain.FilmLog, error)
- func (r *GormRepo) ListPhotos(ctx context.Context, filmLogID uint) ([]*domain.Photo, error)
- func (r *GormRepo) UpdateFilmLog(ctx context.Context, filmLog *domain.FilmLog) error
- func (r *GormRepo) UpdatePhoto(ctx context.Context, photo *domain.Photo) error
- func (r *GormRepo) UpdateUser(ctx context.Context, user *domain.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GormRepo ¶
type GormRepo struct {
// contains filtered or unexported fields
}
func NewGormRepo ¶
func (*GormRepo) CreateFilmLog ¶
CreateFilmLog creates a film log
func (*GormRepo) CreatePhoto ¶
CreatePhoto creates a photo
func (*GormRepo) CreateUser ¶
CreateUser creates a new user
func (*GormRepo) DeleteFilmLog ¶
DeleteFilmLog deletes a film log
func (*GormRepo) DeletePhoto ¶
DeletePhoto deletes a photo
func (*GormRepo) DeleteUser ¶
DeleteUser deletes a user
func (*GormRepo) GetFilmLog ¶
GetFilmLog gets a film log by ID
func (*GormRepo) ListFilmLogs ¶
ListFilmLogs lists all film logs
func (*GormRepo) ListPhotos ¶
ListPhotos lists all photos for a film log
func (*GormRepo) UpdateFilmLog ¶
UpdateFilmLog updates a film log
func (*GormRepo) UpdatePhoto ¶
UpdatePhoto updates a photo
Click to show internal directories.
Click to hide internal directories.