service

package
v0.0.0-...-bcece2d Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 (s *BucketService) CreateBucket(ctx context.Context, bucket *domain.Bucket) (*domain.Bucket, error)

func (*BucketService) DeleteBucket

func (s *BucketService) DeleteBucket(ctx context.Context, id string) error

func (*BucketService) GetBucket

func (s *BucketService) GetBucket(ctx context.Context, id string) (*domain.Bucket, error)

func (*BucketService) ListBuckets

func (s *BucketService) ListBuckets(ctx context.Context) ([]domain.Bucket, error)

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 (f *FileService) CreateFile(ctx context.Context, file *domain.File) (*domain.File, error)

func (*FileService) DeleteFile

func (f *FileService) DeleteFile(ctx context.Context, id string) error

func (*FileService) GetFile

func (f *FileService) GetFile(ctx context.Context, id string) (*domain.File, error)

func (*FileService) GetFilesByBucketID

func (f *FileService) GetFilesByBucketID(ctx context.Context, bucketID string) ([]domain.File, error)

Jump to

Keyboard shortcuts

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