biz

package
v1.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 Uri added in v1.0.4

type Uri struct {
	Path          string
	Dir           string
	Query         string
	Route         string
	ProxyBasePath string
	ReBody        replaceBody
}

type Usecase added in v1.0.4

type Usecase struct {
	// contains filtered or unexported fields
}

func NewUsecase added in v1.0.4

func NewUsecase(repo Repo, logger log.Logger) *Usecase

func (*Usecase) DealRun added in v1.0.5

func (uc *Usecase) DealRun(ctx context.Context, uri string) (res []cse, err error)

func (*Usecase) DealRun1 added in v1.0.5

func (uc *Usecase) DealRun1(ctx context.Context, uri string) (relativePath string, err error)

DealRun1 run run

func (*Usecase) DealUpload added in v1.0.5

func (uc *Usecase) DealUpload(file multipart.File, filename string) (s1 string, err error)

func (*Usecase) GetAbsDir added in v1.0.4

func (uc *Usecase) GetAbsDir(s string) string

func (*Usecase) GetFileList added in v1.0.4

func (uc *Usecase) GetFileList(date string) (list, files []string, err error)

func (*Usecase) GetFileType added in v1.0.4

func (uc *Usecase) GetFileType(dir string) string

func (*Usecase) Proxy added in v1.0.4

func (uc *Usecase) Proxy(u Uri, rw http.ResponseWriter, req *http.Request) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL