Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deps ¶
type Deps struct { Repos *repository.Repositories Storage *storage.Storage Cache *cache.Cache }
type FileService ¶
type FileService struct {
// contains filtered or unexported fields
}
func NewFileService ¶
func NewFileService(repo repository.Files, storage *storage.Storage) *FileService
func (*FileService) GetFile ¶
func (f *FileService) GetFile(id int, params domain.FileParams) ([]byte, error)
func (*FileService) UploadFile ¶
func (f *FileService) UploadFile(file *multipart.FileHeader) (uint, error)
Click to show internal directories.
Click to hide internal directories.