service

package
v0.0.0-...-402e39a Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidFile = errors.New("invalid file")
)

Functions

This section is empty.

Types

type FileService

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

func NewFileService

func NewFileService(fileRepo repository.FileRepository) *FileService

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) (*dto.GetFile, error)

func (*FileService) GetFileInfo

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

func (*FileService) SaveFile

func (f *FileService) SaveFile(ctx context.Context, file dto.SaveFile) (id string, err error)

Jump to

Keyboard shortcuts

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