Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImpUploads ¶
type ImpUploads struct {
// contains filtered or unexported fields
}
ImpUploads is the uploads service implementation
func NewUploads ¶
func NewUploads(infrastructure infrastructure.Interactor) *ImpUploads
NewUploads initializes an upload service instance
func (*ImpUploads) FindUploadByID ¶
func (f *ImpUploads) FindUploadByID( ctx context.Context, id string, ) (*profileutils.Upload, error)
FindUploadByID retrieves an upload by it's ID
func (*ImpUploads) Upload ¶
func (f *ImpUploads) Upload( ctx context.Context, inp profileutils.UploadInput, ) (*profileutils.Upload, error)
Upload uploads the file to cloud storage
type UsecaseUploads ¶
type UsecaseUploads interface { Upload( ctx context.Context, inp profileutils.UploadInput, ) (*profileutils.Upload, error) FindUploadByID( ctx context.Context, id string, ) (*profileutils.Upload, error) }
UsecaseUploads defines uploads service usecases interface
Click to show internal directories.
Click to hide internal directories.