Documentation
¶
Index ¶
Constants ¶
View Source
const ( OBJECTSTORE_LOADER = "objectstore" FILESYSTEM_LOADER = "fs" )
Variables ¶
This section is empty.
Functions ¶
func Preload ¶
func Preload(m *ModuleLoader) error
Types ¶
type ModuleCache ¶
type ModuleCache struct {
// contains filtered or unexported fields
}
func NewModuleCache ¶
func NewModuleCache(redisClient *redis.Client) *ModuleCache
func (*ModuleCache) CacheModule ¶
func (c *ModuleCache) CacheModule(moduleName string, moduleBytes []byte) error
type ModuleInvoker ¶
type ModuleInvoker struct {
// contains filtered or unexported fields
}
func NewModuleInvoker ¶
func NewModuleInvoker(runtime *runtime.Runtime) *ModuleInvoker
func (*ModuleInvoker) InvokeModuleWaZero ¶
func (m *ModuleInvoker) InvokeModuleWaZero(module []byte, data string) ([]byte, error)
type ModuleLoader ¶
type ModuleLoader struct {
// contains filtered or unexported fields
}
func NewModuleLoader ¶
func NewModuleLoader(cfg config.LoaderConfig, cache *ModuleCache, runtime *runtime.Runtime) (*ModuleLoader, error)
func (*ModuleLoader) LoadModule ¶
func (m *ModuleLoader) LoadModule(moduleName string) (*Module, error)
Click to show internal directories.
Click to hide internal directories.