Documentation ¶
Index ¶
- Variables
- type Repo
- type Uri
- type Usecase
- func (uc *Usecase) DealRun(ctx context.Context, uri string) (res []cse, err error)
- func (uc *Usecase) DealRun1(ctx context.Context, uri string) (relativePath string, err error)
- func (uc *Usecase) DealUpload(file multipart.File, filename string) (s1 string, err error)
- func (uc *Usecase) GetAbsDir(s string) string
- func (uc *Usecase) GetFileList(date string) (list, files []string, err error)
- func (uc *Usecase) GetFileType(dir string) string
- func (uc *Usecase) Proxy(u Uri, rw http.ResponseWriter, req *http.Request) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewUsecase)
Functions ¶
This section is empty.
Types ¶
type Repo ¶ added in v1.0.4
type Repo interface { GetPortByDir(string2 string) (port int, err error) GetAbsDir(string2 string) string GetFileList(date string) (list, files []string, err error) GetFileType(dir string) string CreateFile(url string, contentType string, data []byte) (relativePath string, err error) CreateFileByUpload(fileName string, data []byte) (relativePath string, err error) }
type Usecase ¶ added in v1.0.4
type Usecase struct {
// contains filtered or unexported fields
}
func (*Usecase) DealUpload ¶ added in v1.0.5
func (*Usecase) GetFileList ¶ added in v1.0.4
func (*Usecase) GetFileType ¶ added in v1.0.4
Click to show internal directories.
Click to hide internal directories.