interactor

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInteractor

type FileInteractor struct {
	domain.InterfaceFileInteractor
	// contains filtered or unexported fields
}

func NewFileInteractor

func NewFileInteractor(
	contexts config.FileContexts,
	repository domain.InterfaceFileRepository,
	builder builder.File,
	storage storage.InterfaceStorage,
) FileInteractor

func (FileInteractor) Delete

func (interactor FileInteractor) Delete(id uuid.UUID) error

func (FileInteractor) Get

func (interactor FileInteractor) Get(id uuid.UUID) (*dto.File, error)

func (FileInteractor) Save

func (interactor FileInteractor) Save(contextName string, filename string, file multipart.File) (*dto.File, error)

Jump to

Keyboard shortcuts

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