Documentation ¶
Index ¶
- Variables
- func CallFunction(ctx context.Context, cat lang.Catalog, env *lang.RunEnv, v *apivalues.Value, ...) (lang.Lang, *apivalues.Value, *apilang.RunSummary, error)
- func CompileModule(ctx context.Context, cat lang.Catalog, predecls []string, ...) (_ *apiprogram.Module, ext string, _ error)
- func GetModuleDependencies(ctx context.Context, cat lang.Catalog, mod *apiprogram.Module) ([]*apiprogram.Path, error)
- func IsCompilerVersionSupported(ctx context.Context, cat lang.Catalog, lang, ver string) (bool, error)
- func NewGRPCCatalog(ctx context.Context, l L.L, client pblangsvc.LangClient, ...) (lang.Catalog, error)
- func NewGRPCCatalogFromConn(ctx context.Context, l L.L, conn *grpc.ClientConn) (lang.Catalog, error)
- func NewInMemoryLoader(mods []*apiprogram.Module, load lang.LoadFunc, ...) lang.LoadFunc
- func PathToRegisteredLang(cat lang.Catalog, path string) (lang_, ext string, err error)
- func RejectCycles(load lang.LoadFunc) lang.LoadFunc
- func RunModule(ctx context.Context, cat lang.Catalog, env *lang.RunEnv, ...) (lang.Lang, map[string]*apivalues.Value, *apilang.RunSummary, error)
- func RunModules(ctx context.Context, cat lang.Catalog, env *lang.RunEnv, ...) (map[string]*apivalues.Value, *apilang.RunSummary, error)
- func SplitExtension(cat lang.Catalog, path string) (base, ext string)
- type LocalCatalog
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PermissiveCatalog = &LocalCatalog{} DeterministicCatalog = &LocalCatalog{} )
Functions ¶
func CallFunction ¶
func CompileModule ¶
func GetModuleDependencies ¶
func GetModuleDependencies(ctx context.Context, cat lang.Catalog, mod *apiprogram.Module) ([]*apiprogram.Path, error)
func NewGRPCCatalog ¶
func NewGRPCCatalogFromConn ¶
func NewInMemoryLoader ¶
func PathToRegisteredLang ¶
func RunModules ¶
Types ¶
type LocalCatalog ¶
func (*LocalCatalog) Acquire ¶
func (c *LocalCatalog) Acquire(name, scope string) (lang.Lang, error)
func (*LocalCatalog) List ¶
func (c *LocalCatalog) List() map[string][]string
func (*LocalCatalog) Register ¶
func (c *LocalCatalog) Register(name string, l lang.CatalogLang)
Click to show internal directories.
Click to hide internal directories.