pool

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyLoad    = errors.New("module already loaded")
	ErrNotLoad        = errors.New("module not loaded")
	ErrMissingPackage = errors.New("package not loaded")
	ErrCorrupted      = errors.New("recording corrupted")
)

Functions

This section is empty.

Types

type Pool

type Pool struct {
	Symbols
	Modules map[string]Dynamic
	Loaded  []Dynamic
	sync.RWMutex
}

func NewPool

func NewPool() (p *Pool, err error)

NewPool create new pool

func (*Pool) Free added in v0.1.3

func (p *Pool) Free()

Free clean all modules

func (*Pool) LoadFile

func (p *Pool) LoadFile(file, pkgPath string) (err error)

LoadFile load from go archive or go object file

func (*Pool) LoadLinkable

func (p *Pool) LoadLinkable(bin io.Reader) (err error)

LoadLinkable load from serialized link

func (*Pool) RegisterExecute

func (p *Pool) RegisterExecute(path string) error

func (*Pool) RegisterSo

func (p *Pool) RegisterSo(path string) error

func (*Pool) RegisterTypes

func (p *Pool) RegisterTypes(t ...any)

func (*Pool) ReloadFile

func (p *Pool) ReloadFile(file, pkgPath string) (err error)

ReloadFile from go archive or go object file

func (*Pool) ReloadLinkable

func (p *Pool) ReloadLinkable(bin io.Reader) (err error)

ReloadLinkable from serialized link

func (*Pool) Require

func (p *Pool) Require(pkgPath, symbolName string) Sym

Require fetch symbol from package

Jump to

Keyboard shortcuts

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