local

package
v0.0.0-...-f13fc7a Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 26 Imported by: 0

Documentation

Index

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) Unmarshal

func (localdb *LocalDB) Unmarshal(rawData []*common_type.RawData, columnDesc []*common_type.ColumnDesc, v interface{}) common_type.PluginError

type Log

type Log struct {
	Logger *zap.SugaredLogger
}

func NewLog

func NewLog() *Log

func (*Log) Debug

func (log *Log) Debug(format string)

func (*Log) Error

func (log *Log) Error(format string)

func (*Log) ErrorTrace

func (log *Log) ErrorTrace(format string)

func (*Log) Fatal

func (log *Log) Fatal(format string)

func (*Log) Info

func (log *Log) Info(format string)

func (*Log) Trace

func (log *Log) Trace(format string)

func (*Log) Warn

func (log *Log) Warn(format string)

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

Jump to

Keyboard shortcuts

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