Documentation ¶
Index ¶
- func NewLocalDB(plugin common_type.IPlugin) common_type.LocalDB
- func NewSpace(plugin common_type.IPlugin) common_type.Workspace
- type LocalDB
- func (localdb *LocalDB) AsyncSelect(sql string, callback common_type.DBCallBack)
- func (localdb *LocalDB) Exec(sql string) common_type.PluginError
- func (localdb *LocalDB) ImportSQL(sqlFilePath string) common_type.PluginError
- func (localdb *LocalDB) Select(sql string) ([]*common_type.RawData, []*common_type.ColumnDesc, common_type.PluginError)
- func (localdb *LocalDB) Unmarshal(rawData []*common_type.RawData, columnDesc []*common_type.ColumnDesc, ...) common_type.PluginError
- type Log
- type Resource
- func (r *Resource) GetAPICore() common_type.APICore
- func (r *Resource) GetAbility() common_type.Ability
- func (r *Resource) GetEventPublisher() common_type.EventPublisher
- func (r *Resource) GetLocalDB() common_type.LocalDB
- func (r *Resource) GetLogger() common_type.PluginLogger
- func (r *Resource) GetOutDoor() common_type.Network
- func (r *Resource) GetSysDB() common_type.SysDB
- func (r *Resource) GetWorkspace() common_type.Workspace
- type ResourceFactor
- type Space
- func (s *Space) AppendBytes(filePath string, byteSlice []byte) common_type.PluginError
- func (s *Space) AppendStrings(filePath string, content []string) common_type.PluginError
- func (s *Space) AsyncCopy(originalPath string, newPath string, ...)
- func (s *Space) AsyncGz(name string, callback common_type.AsyncInvokeCallbackParams)
- func (s *Space) AsyncUnGz(name string, targetFile string, callback common_type.AsyncInvokeCallbackParams)
- func (s *Space) AsyncUnZip(name string, targetDir string, callback common_type.AsyncInvokeCallbackParams)
- func (s *Space) AsyncZip(outFileName string, targetFiles []string, ...)
- func (s *Space) Copy(originalPath string, newPath string) common_type.PluginError
- func (s *Space) CreateFile(name string) common_type.PluginError
- func (s *Space) Gz(name string) common_type.PluginError
- func (s *Space) Hash(name string) ([]byte, common_type.PluginError)
- func (s *Space) IsDir(name string) (bool, common_type.PluginError)
- func (s *Space) IsExist(name string) (bool, common_type.PluginError)
- func (s *Space) List(dirPath string) ([]string, common_type.PluginError)
- func (s *Space) MakeDir(name string) common_type.PluginError
- func (s *Space) Read(name string) ([]byte, common_type.PluginError)
- func (s *Space) ReadLines(name string, lineBegin, lineEnd int32) ([]byte, common_type.PluginError)
- func (s *Space) Remove(name string) common_type.PluginError
- func (s *Space) Rename(originalPath string, newPath string) common_type.PluginError
- func (s *Space) UnGz(name string, targetFile string) common_type.PluginError
- func (s *Space) UnZip(name string, targetDir string) common_type.PluginError
- func (s *Space) WriteBytes(name string, byteSlice []byte) common_type.PluginError
- func (s *Space) WriteStrings(name string, content []string) common_type.PluginError
- func (s *Space) Zip(outFileName string, targetFiles []string) common_type.PluginError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLocalDB ¶
func NewLocalDB(plugin common_type.IPlugin) common_type.LocalDB
func NewSpace ¶
func NewSpace(plugin common_type.IPlugin) common_type.Workspace
Types ¶
type LocalDB ¶
type LocalDB struct {
// contains filtered or unexported fields
}
func (*LocalDB) AsyncSelect ¶
func (localdb *LocalDB) AsyncSelect(sql string, callback common_type.DBCallBack)
func (*LocalDB) Exec ¶
func (localdb *LocalDB) Exec(sql string) common_type.PluginError
func (*LocalDB) ImportSQL ¶
func (localdb *LocalDB) ImportSQL(sqlFilePath string) common_type.PluginError
func (*LocalDB) Select ¶
func (localdb *LocalDB) Select(sql string) ([]*common_type.RawData, []*common_type.ColumnDesc, common_type.PluginError)
func (*LocalDB) Unmarshal ¶
func (localdb *LocalDB) Unmarshal(rawData []*common_type.RawData, columnDesc []*common_type.ColumnDesc, v interface{}) common_type.PluginError
type Resource ¶
type Resource struct { Plugin common_type.IPlugin Sender common.Sender // contains filtered or unexported fields }
func (*Resource) GetAPICore ¶
func (r *Resource) GetAPICore() common_type.APICore
func (*Resource) GetAbility ¶
func (r *Resource) GetAbility() common_type.Ability
func (*Resource) GetEventPublisher ¶
func (r *Resource) GetEventPublisher() common_type.EventPublisher
func (*Resource) GetLocalDB ¶
func (r *Resource) GetLocalDB() common_type.LocalDB
func (*Resource) GetLogger ¶
func (r *Resource) GetLogger() common_type.PluginLogger
func (*Resource) GetOutDoor ¶
func (r *Resource) GetOutDoor() common_type.Network
func (*Resource) GetSysDB ¶
func (r *Resource) GetSysDB() common_type.SysDB
func (*Resource) GetWorkspace ¶
func (r *Resource) GetWorkspace() common_type.Workspace
type ResourceFactor ¶
type ResourceFactor func(plugin common_type.IPlugin, sender common.Sender) common_type.IResources
func (ResourceFactor) GetResource ¶
func (f ResourceFactor) GetResource(plugin common_type.IPlugin, sender common.Sender) common_type.IResources
type Space ¶
type Space struct {
// contains filtered or unexported fields
}
func (*Space) AppendBytes ¶
func (s *Space) AppendBytes(filePath string, byteSlice []byte) common_type.PluginError
func (*Space) AppendStrings ¶
func (s *Space) AppendStrings(filePath string, content []string) common_type.PluginError
func (*Space) AsyncCopy ¶
func (s *Space) AsyncCopy(originalPath string, newPath string, callback common_type.AsyncInvokeCallbackParams)
func (*Space) AsyncGz ¶
func (s *Space) AsyncGz(name string, callback common_type.AsyncInvokeCallbackParams)
func (*Space) AsyncUnGz ¶
func (s *Space) AsyncUnGz(name string, targetFile string, callback common_type.AsyncInvokeCallbackParams)
func (*Space) AsyncUnZip ¶
func (s *Space) AsyncUnZip(name string, targetDir string, callback common_type.AsyncInvokeCallbackParams)
func (*Space) AsyncZip ¶
func (s *Space) AsyncZip(outFileName string, targetFiles []string, callback common_type.AsyncInvokeCallbackParams)
func (*Space) Copy ¶
func (s *Space) Copy(originalPath string, newPath string) common_type.PluginError
func (*Space) CreateFile ¶
func (s *Space) CreateFile(name string) common_type.PluginError
func (*Space) Gz ¶
func (s *Space) Gz(name string) common_type.PluginError
func (*Space) Hash ¶
func (s *Space) Hash(name string) ([]byte, common_type.PluginError)
func (*Space) IsDir ¶
func (s *Space) IsDir(name string) (bool, common_type.PluginError)
func (*Space) IsExist ¶
func (s *Space) IsExist(name string) (bool, common_type.PluginError)
func (*Space) List ¶
func (s *Space) List(dirPath string) ([]string, common_type.PluginError)
func (*Space) MakeDir ¶
func (s *Space) MakeDir(name string) common_type.PluginError
func (*Space) Read ¶
func (s *Space) Read(name string) ([]byte, common_type.PluginError)
func (*Space) ReadLines ¶
func (s *Space) ReadLines(name string, lineBegin, lineEnd int32) ([]byte, common_type.PluginError)
func (*Space) Remove ¶
func (s *Space) Remove(name string) common_type.PluginError
func (*Space) Rename ¶
func (s *Space) Rename(originalPath string, newPath string) common_type.PluginError
func (*Space) UnGz ¶
func (s *Space) UnGz(name string, targetFile string) common_type.PluginError
func (*Space) UnZip ¶
func (s *Space) UnZip(name string, targetDir string) common_type.PluginError
func (*Space) WriteBytes ¶
func (s *Space) WriteBytes(name string, byteSlice []byte) common_type.PluginError
func (*Space) WriteStrings ¶
func (s *Space) WriteStrings(name string, content []string) common_type.PluginError
func (*Space) Zip ¶
func (s *Space) Zip(outFileName string, targetFiles []string) common_type.PluginError
Click to show internal directories.
Click to hide internal directories.