uploads

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 3 Imported by: 0

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

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

Jump to

Keyboard shortcuts

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