Documentation ¶
Index ¶
- Variables
- type DefaultFilesService
- func (d DefaultFilesService) CreateDirectory(fileSpace, directory string) error
- func (d DefaultFilesService) CreateFile(fileSpace, fileName string, data []byte) error
- func (d DefaultFilesService) CreateFileSpace(fileSpace string) error
- func (d DefaultFilesService) FetchFile(fileSpace, fileName string) ([]byte, error)
- type FilesService
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewFileService)
Functions ¶
This section is empty.
Types ¶
type DefaultFilesService ¶
type DefaultFilesService struct { Repository repositories.FilesRepository // contains filtered or unexported fields }
func (DefaultFilesService) CreateDirectory ¶
func (d DefaultFilesService) CreateDirectory(fileSpace, directory string) error
func (DefaultFilesService) CreateFile ¶
func (d DefaultFilesService) CreateFile(fileSpace, fileName string, data []byte) error
func (DefaultFilesService) CreateFileSpace ¶
func (d DefaultFilesService) CreateFileSpace(fileSpace string) error
type FilesService ¶
type FilesService interface { CreateFileSpace(fileSpace string) error CreateDirectory(fileSpace, directory string) error CreateFile(fileSpace, fileName string, data []byte) error FetchFile(fileSpace, fileName string) ([]byte, error) }
func CreateFilesService ¶
func CreateFilesService(cf string, sto repositories.FilesRepository) (FilesService, error)
func NewFileService ¶
func NewFileService(logger *zap.Logger, Repository repositories.FilesRepository) FilesService
Click to show internal directories.
Click to hide internal directories.