module

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 15 Imported by: 0

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 Module

type Module struct {
	Name  string
	Bytes []byte
}

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

func (*ModuleCache) GetModule

func (c *ModuleCache) GetModule(moduleName string) ([]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)

Jump to

Keyboard shortcuts

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