zipfile

package
v0.0.0-...-c47cd45 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MulanPSL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeFile = iota
	ZipFile
	Modelfile
	PbFile
	Esmapping
)

Variables

This section is empty.

Functions

func InjectZipfilePath

func InjectZipfilePath(s *ZipfilePath)

func InjectZipfileStrategy

func InjectZipfileStrategy(s *ZipfileStrategy)

func LoadZipfilePath

func LoadZipfilePath() baseiface.ISingleton

func LoadZipfileStrategy

func LoadZipfileStrategy() baseiface.ISingleton

Types

type ZipfilePath

type ZipfilePath struct {
	basedto.BaseEntity
	TableName    string `json:"table_name"`
	PathType     int
	FullPathName string
	ZipSrcPath   string
}

username

func FindBeanZipfilePath

func FindBeanZipfilePath() *ZipfilePath

func NewFilePath

func NewFilePath() *ZipfilePath

func (*ZipfilePath) Path2FileName

func (this *ZipfilePath) Path2FileName() string

func (*ZipfilePath) RmZip

func (this *ZipfilePath) RmZip(zf string)

func (*ZipfilePath) ToKey

func (this *ZipfilePath) ToKey() string

func (*ZipfilePath) Zip

func (this *ZipfilePath) Zip() (error, string)

type ZipfileStrategy

type ZipfileStrategy struct {
	basedto.BaseEntitySingle
	FilePaths map[string]*ZipfilePath
}

func FindBeanZipfileStrategy

func FindBeanZipfileStrategy() *ZipfileStrategy

func NewZipfileStrategy

func NewZipfileStrategy() *ZipfileStrategy

func (*ZipfileStrategy) Find

func (this *ZipfileStrategy) Find(TableName string, pathType int) *ZipfilePath

func (ZipfileStrategy) FindModelFile

func (this ZipfileStrategy) FindModelFile(TableName string) *ZipfilePath

func (ZipfileStrategy) FindZip

func (this ZipfileStrategy) FindZip(TableName string) *ZipfilePath

func (*ZipfileStrategy) Register

func (this *ZipfileStrategy) Register(Fp *ZipfilePath)

func (*ZipfileStrategy) RegisterModelFile

func (this *ZipfileStrategy) RegisterModelFile(TableName, Path string)

func (*ZipfileStrategy) RegisterZip

func (this *ZipfileStrategy) RegisterZip(TableName string, zipSrcPath string)

func (*ZipfileStrategy) RmZip

func (this *ZipfileStrategy) RmZip(tablename string, basepath string)

func (*ZipfileStrategy) Zip

func (this *ZipfileStrategy) Zip(tableName string, srcpath string) string

Jump to

Keyboard shortcuts

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