Documentation
¶
Index ¶
- type BucketService
- func (s *BucketService) CreateBucket(ctx context.Context, bucket *domain.Bucket) (*domain.Bucket, error)
- func (s *BucketService) DeleteBucket(ctx context.Context, id string) error
- func (s *BucketService) GetBucket(ctx context.Context, id string) (*domain.Bucket, error)
- func (s *BucketService) ListBuckets(ctx context.Context) ([]domain.Bucket, error)
- type FileService
- func (f *FileService) CreateFile(ctx context.Context, file *domain.File) (*domain.File, error)
- func (f *FileService) DeleteFile(ctx context.Context, id string) error
- func (f *FileService) GetFile(ctx context.Context, id string) (*domain.File, error)
- func (f *FileService) GetFilesByBucketID(ctx context.Context, bucketID string) ([]domain.File, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketService ¶
type BucketService struct {
// contains filtered or unexported fields
}
func NewBucketService ¶
func NewBucketService(log *zerolog.Logger, bucketRepo port.BucketRepository, fileRepo port.FileRepository, storageRepoProvider port.StorageRepositoryProvider) *BucketService
func (*BucketService) CreateBucket ¶
func (*BucketService) DeleteBucket ¶
func (s *BucketService) DeleteBucket(ctx context.Context, id string) error
func (*BucketService) ListBuckets ¶
type FileService ¶
type FileService struct {
// contains filtered or unexported fields
}
func NewFileService ¶
func NewFileService(log *zerolog.Logger, bucketRepo port.BucketRepository, fileRepo port.FileRepository) *FileService
func (*FileService) CreateFile ¶
func (*FileService) DeleteFile ¶
func (f *FileService) DeleteFile(ctx context.Context, id string) error
func (*FileService) GetFilesByBucketID ¶
Click to show internal directories.
Click to hide internal directories.