interactors

package
v0.0.0-...-5ed09de Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IStorage

type IStorage interface {
	Upload(path string, file []byte) (string, error)
	Download(path string) ([]byte, error)
}

type Interactor

type Interactor struct {
	// contains filtered or unexported fields
}

func NewInteractor

func NewInteractor(database *storage.StorageDatabase, storage IStorage, logger logger.ILogger) (*Interactor, error)

func (*Interactor) Download

func (interactor *Interactor) Download(downloadRequest *models.DownloadRequest) ([]byte, error)

func (*Interactor) Upload

func (interactor *Interactor) Upload(uploadRequest *models.UploadRequest) (*models.UploadResponse, error)

Jump to

Keyboard shortcuts

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