functions

package
v0.13.0-prerelease-test-3 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateParametersMap

func CreateParametersMap(fn *metadata.Function, paramValues ...any) (map[string]any, error)

func RegisterFunctionsLoadedCallback

func RegisterFunctionsLoadedCallback(callback FunctionsLoadedCallback)

Types

type FunctionInfo

type FunctionInfo interface {
	Name() string
	IsImport() bool
	Plugin() *plugins.Plugin
	Metadata() *metadata.Function
	ExecutionPlan() langsupport.ExecutionPlan
}

func NewFunctionInfo

func NewFunctionInfo(fnName string, plugin *plugins.Plugin, isImport bool) (FunctionInfo, bool)

type FunctionRegistry

type FunctionRegistry interface {
	GetFunctionInfo(fnName string) (FunctionInfo, error)
	RegisterAllFunctions(ctx context.Context, plugins ...*plugins.Plugin)
	RegisterImports(ctx context.Context, plugin *plugins.Plugin) []string
	RegisterExports(ctx context.Context, plugin *plugins.Plugin) []string
}

func NewFunctionRegistry

func NewFunctionRegistry() FunctionRegistry

type FunctionsLoadedCallback

type FunctionsLoadedCallback = func(ctx context.Context)

Jump to

Keyboard shortcuts

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