Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSource ¶
type DataSource interface { SaveFile(path string, file *multipart.FileHeader) (string, error) CreateDirectory(dirName string) bool ExtWhitelist(path string) (string, error) }
DataSource is the interface
func ProvideFileDataSource ¶
func ProvideFileDataSource() DataSource
type Repository ¶
type Repository interface {
SaveFile(m *multipart.FileHeader) (string, error)
}
Repository is the interface
func NewRepository ¶
func NewRepository(datasource DataSource) Repository
NewRepository is the create repository
func ProvideRepository ¶
func ProvideRepository() Repository
type UseCase ¶
type UseCase interface {
Upload(m *multipart.FileHeader) (string, error)
}
UseCase is the interface
func ProvideUseCase ¶
func ProvideUseCase() UseCase
Click to show internal directories.
Click to hide internal directories.