Documentation ¶
Index ¶
- func NewImageRepository(s *store.Store, mappers ImageRepositoryMappers) storage.ImageRepository
- func WithFilename(filename *string) entities.EntityFunc[entities.Image]
- func WithMimeType(mimeType *string) entities.EntityFunc[entities.Image]
- func WithURL(url string) entities.EntityFunc[entities.Image]
- type ImageRepository
- func (r *ImageRepository) Create(ctx context.Context, iFn ...entities.EntityFunc[entities.Image]) (*entities.Image, error)
- func (r *ImageRepository) Delete(ctx context.Context, id int32) error
- func (r *ImageRepository) GetAll(ctx context.Context) ([]*entities.Image, error)
- func (r *ImageRepository) GetByID(ctx context.Context, id int32) (*entities.Image, error)
- func (r *ImageRepository) Update(ctx context.Context, id int32, iFn ...entities.EntityFunc[entities.Image]) (*entities.Image, error)
- type ImageRepositoryMappers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewImageRepository ¶
func NewImageRepository(s *store.Store, mappers ImageRepositoryMappers) storage.ImageRepository
func WithFilename ¶
func WithFilename(filename *string) entities.EntityFunc[entities.Image]
func WithMimeType ¶
func WithMimeType(mimeType *string) entities.EntityFunc[entities.Image]
Types ¶
type ImageRepository ¶
type ImageRepository struct { ImageRepositoryMappers // contains filtered or unexported fields }
func (*ImageRepository) Create ¶
func (r *ImageRepository) Create(ctx context.Context, iFn ...entities.EntityFunc[entities.Image]) (*entities.Image, error)
func (*ImageRepository) Delete ¶
func (r *ImageRepository) Delete(ctx context.Context, id int32) error
type ImageRepositoryMappers ¶
type ImageRepositoryMappers struct {
// contains filtered or unexported fields
}
func NewImageRepositoryMappers ¶
func NewImageRepositoryMappers(iMapper mapper.InternalImageRepoMapper) ImageRepositoryMappers
Click to show internal directories.
Click to hide internal directories.