Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImagesStorageService ¶
type ImagesStorageService interface { SaveImage(ctx context.Context, img []byte, category string) (string, error) GetImage(ctx context.Context, imageId string, category string) ([]byte, error) IsImageExist(ctx context.Context, imageId string, category string) (bool, error) DeleteImage(ctx context.Context, imageId string, category string) error RewriteImage(ctx context.Context, img []byte, imageId string, category string, createImageIfNotExist bool) (string, error) }
func NewImagesStorageService ¶
func NewImagesStorageService(logger *logrus.Logger, metrics Metrics, storage repository.ImageStorage, cfg Config) ImagesStorageService
Click to show internal directories.
Click to hide internal directories.