runtime

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupConfigBuildArtifacts

func CleanupConfigBuildArtifacts(rootDir string, loaded *LoadedConfig) error

CleanupConfigBuildArtifacts removes every config build except the one that has already been accepted by the runtime.

func CleanupTestBuildArtifacts

func CleanupTestBuildArtifacts(loaded *LoadedTest) error

CleanupTestBuildArtifacts removes the unique generated source and plugin directory after the plugin has been loaded into the current process.

Types

type LoadedConfig

type LoadedConfig struct {
	BuildDir        string
	BuildID         string
	GeneratedGoPath string
	ArtifactPath    string
	CompileBytes    int64
	CompileResult   *goxcompiler.CompileResult
	Plugin          *plugin.Plugin
	Config          server.Config
}

func CompileConfigPlugin

func CompileConfigPlugin(p *project.Project, paths toolchain.Paths, out io.Writer) (*LoadedConfig, error)

type LoadedTest

type LoadedTest struct {
	SourcePath      string
	GeneratedGoPath string
	ArtifactPath    string
	CompileResult   *goxcompiler.CompileResult
	Plugin          *plugin.Plugin
	Tests           map[string]func()
}

func CompileTestPlugin

func CompileTestPlugin(p *project.Project, paths toolchain.Paths, sourcePath string, out io.Writer) (*LoadedTest, error)

Jump to

Keyboard shortcuts

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