Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MediaService ¶
type MediaService struct {
// contains filtered or unexported fields
}
func NewMediaService ¶
func NewMediaService(mediaRepository repositories.IMediaRepository, tagRepository repositories.ITagRepository) *MediaService
func (*MediaService) CreateMedia ¶
func (service *MediaService) CreateMedia(ctx context.Context, name string, tags []string, file *multipart.FileHeader) (uint, error)
func (*MediaService) GetMediasByTag ¶
func (service *MediaService) GetMediasByTag(tag string) ([]models.MediaWithTagNames, error)
type StorageService ¶
type StorageService struct { Client *minio.Client BucketName string }
func NewStorageService ¶
func NewStorageService() (*StorageService, error)
func (*StorageService) CreateBucket ¶
func (service *StorageService) CreateBucket(ctx context.Context, bucketName string) error
func (*StorageService) UploadObject ¶
func (service *StorageService) UploadObject(ctx context.Context, fileHeader *multipart.FileHeader) (string, error)
type TagService ¶
type TagService struct {
// contains filtered or unexported fields
}
func NewTagService ¶
func NewTagService(tagRepository repositories.ITagRepository) *TagService
func (*TagService) DeleteTag ¶
func (service *TagService) DeleteTag(id string) error
Click to show internal directories.
Click to hide internal directories.