vm

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: BSD-3-Clause Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProcWatchInterval = time.Second
)

Functions

func HandShake

func HandShake() plugin.HandshakeConfig

func Load

func Load(filename string, ctx context.Context) (vm.Plugin, error)

TODO: Handle ma as multi-address

func Subscribe

func Subscribe(key interface{}) <-chan string

func UnSubscribe

func UnSubscribe(key interface{})

Types

type Satellite

type Satellite interface {
	io.Closer

	Meta(context.Context) (*proto.Metadata, error)
	Symbols(context.Context) ([]vm.FunctionDefinition, error)
	Call(ctx context.Context, module vm.Module, function string, inputs []uint64) ([]uint64, error)
	Close() error
}

Jump to

Keyboard shortcuts

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