Documentation ¶
Index ¶
- Variables
- type FileService
- func (f *FileService) DeleteFile(ctx context.Context, id string) error
- func (f *FileService) GetFile(ctx context.Context, id string) (*dto.GetFile, error)
- func (f *FileService) GetFileInfo(ctx context.Context, id string) (*dto.GetFileInfo, error)
- func (f *FileService) SaveFile(ctx context.Context, file dto.SaveFile) (id string, err error)
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) GetFileInfo ¶
func (f *FileService) GetFileInfo(ctx context.Context, id string) (*dto.GetFileInfo, error)
Click to show internal directories.
Click to hide internal directories.