programregistry

package
v0.0.0-...-52772bf Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadyRegistered = fmt.Errorf("already registered")
View Source
var ErrNotFound = fmt.Errorf("not found")

Functions

This section is empty.

Types

type Registry

type Registry interface {
	Register(program string, fqn string) (hash string, err error)
	Get(hash string) (program pyexp.Runtime, err error)
}

Registry is a registry of PyExp. The PyExp Registry is a cache of PyExp Programs This allows the runtime to store the program regardless to the feature definition, and to execute programs by passing their hash.

func New

func New(ctx context.Context, engine api.Engine) Registry

New creates a new PyExp Registry

Jump to

Keyboard shortcuts

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