providers

package
v1.10.0-alpha.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// LegacyProviderName is the name of legacy provider
	LegacyProviderName = "op"
	// QLProviderName is the name of ql provider
	QLProviderName = "ql"
)

Variables

View Source
var (
	// EnableExternalPackageForDefaultCompiler .
	EnableExternalPackageForDefaultCompiler = true
	// EnableExternalPackageWatchForDefaultCompiler .
	EnableExternalPackageWatchForDefaultCompiler = false
)
View Source
var DefaultCompiler = singleton.NewSingleton[*cuex.Compiler](func() *cuex.Compiler {
	c := compiler.Get()
	if EnableExternalPackageForDefaultCompiler {
		if err := c.LoadExternalPackages(context.Background()); err != nil {
			klog.Errorf("failed to load external packages for cuex default compiler: ", err.Error())
		}
	}
	if EnableExternalPackageWatchForDefaultCompiler {
		go c.ListenExternalPackages(nil)
	}
	return c
})

DefaultCompiler compiler for cuex to compile

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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