Documentation
¶
Index ¶
- Constants
- func InjectZipfilePath(s *ZipfilePath)
- func InjectZipfileStrategy(s *ZipfileStrategy)
- func LoadZipfilePath() baseiface.ISingleton
- func LoadZipfileStrategy() baseiface.ISingleton
- type ZipfilePath
- type ZipfileStrategy
- func (this *ZipfileStrategy) Find(TableName string, pathType int) *ZipfilePath
- func (this ZipfileStrategy) FindModelFile(TableName string) *ZipfilePath
- func (this ZipfileStrategy) FindZip(TableName string) *ZipfilePath
- func (this *ZipfileStrategy) Register(Fp *ZipfilePath)
- func (this *ZipfileStrategy) RegisterModelFile(TableName, Path string)
- func (this *ZipfileStrategy) RegisterZip(TableName string, zipSrcPath string)
- func (this *ZipfileStrategy) RmZip(tablename string, basepath string)
- func (this *ZipfileStrategy) Zip(tableName string, srcpath string) string
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)
Click to show internal directories.
Click to hide internal directories.