image

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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]

func WithURL

func WithURL(url string) entities.EntityFunc[entities.Image]

Types

type ImageRepository

type ImageRepository struct {
	ImageRepositoryMappers
	// contains filtered or unexported fields
}

func (*ImageRepository) Create

func (*ImageRepository) Delete

func (r *ImageRepository) Delete(ctx context.Context, id int32) error

func (*ImageRepository) GetAll

func (r *ImageRepository) GetAll(ctx context.Context) ([]*entities.Image, error)

func (*ImageRepository) GetByID

func (r *ImageRepository) GetByID(ctx context.Context, id int32) (*entities.Image, error)

func (*ImageRepository) Update

type ImageRepositoryMappers

type ImageRepositoryMappers struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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